-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add neural networks and bug fixes #79
Conversation
"id": "8a26dc61", | ||
"metadata": {}, | ||
"source": [ | ||
"## 4. Available built-in models" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to place this section before section with TabularAutoML init
"outputs": [], | ||
"source": [ | ||
"DATASET_DIR = '../data/'\n", | ||
"DATASET_NAME = 'sampled_app_train.csv'\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove redundant variables DATASET_NAME and DATASET_DIR -- they are used just only once
"source": [ | ||
"### 0.1. Import libraries\n", | ||
"\n", | ||
"Here we will import the libraries we use in this kernel:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant comments in lines 105-107
"id": "0ecdf10d", | ||
"metadata": {}, | ||
"source": [ | ||
"### 4.1. MLP (`\"mlp\"`)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, add links to description of NN architecture for every section below
"metadata": {}, | ||
"source": [ | ||
"- `bs` - batch_size\n", | ||
"- `snap_params` - early stopping and checkpoint averaging params, swa\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add definition for "swa"
"id": "bbf8a589", | ||
"metadata": {}, | ||
"source": [ | ||
"#### 6.1.2 Define by yourself whole pipeline" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"#### 6.1.2 Define by yourself whole pipeline" | |
"#### 6.1.2 Define the pipeline by yourself" |
try: | ||
last_layer = list( | ||
filter( | ||
lambda x: isinstance(x, nn.Linear) or isinstance(x, nn.Sequential), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove all lambda functions.
Check whether you can load automl with nn on disk and load it.
Additions
Fixes
automl.fit_predict