I hereby claim:
- I am mavillan on github.
 - I am nallivam (https://keybase.io/nallivam) on keybase.
 - I have a public key ASBsaOkSNe87xQkOJCMOl0gweyv9xUiEenhVUz35qhTFsgo
 
To claim this, I am signing this object:
| name: ds_stack | |
| channels: | |
| - default | |
| - conda-forge | |
| - h2oai | |
| dependencies: | |
| - python=3.6 | |
| - numpy=1.15.* | |
| - pandas=0.23.* | |
| - flask | 
I hereby claim:
To claim this, I am signing this object:
| kf = model_selection.KFold(n_splits=5, shuffle=True, random_state=23) | |
| cv_scores = list() | |
| best_iterations = list() | |
| for train_idx,valid_idx in kf.split(train.loc[:,input_cols]): | |
| X_train,y_train = train.loc[train_idx,input_cols], train.loc[train_idx,target] | |
| X_valid,y_valid = train.loc[valid_idx,input_cols], train.loc[valid_idx,target] | 
| import torch | |
| from torch import nn | |
| import pytorch_lightning as pl | |
| class SoftOrdering1DCNN(pl.LightningModule): | |
| def __init__(self, input_dim, output_dim, sign_size=32, cha_input=16, cha_hidden=32, | |
| K=2, dropout_input=0.2, dropout_hidden=0.2, dropout_output=0.2): | |
| super().__init__() | 
| Model | Valid AUC | Test AUC | |
|---|---|---|---|
| MLP | 0.8592 | 0.8598 | |
| SoftOrdering1DCNN | 0.8670 | 0.8681 | |
| LightGBM | 0.8857 | 0.8872 | 
| import papermill as pm | |
| from pathlib import Path | |
| import subprocess | |
| import typer | |
| def remove_cell_outputs(notebook_path:str) -> None: | |
| command = f"jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace {notebook_path}" | |
| process = subprocess.Popen(command.split(), stdout=subprocess.PIPE) | |
| output, error = process.communicate() | |
| print(output) |