-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[WIP] feat: Weights and Biases #1513
base: dev
Are you sure you want to change the base?
Changes from 13 commits
3f639f8
a4da2b6
cd142f8
1b9361f
be97470
9b6f71e
eaf908d
968e00d
2ce99d8
fb5f950
6998d06
de8df4a
0fde139
95a090c
c3ee83d
145c311
987da10
6306c01
27a940b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -3,7 +3,7 @@ | |||||||||||
"class_name": "basic_classification_reader", | ||||||||||||
"x": "Twit", | ||||||||||||
"y": "Class", | ||||||||||||
"data_path": "{DOWNLOADS_PATH}/sentiment_twitter_data" | ||||||||||||
"data_path": "{DOWNLOADS_PATH}/sentiment_twitter_data/modified_data" | ||||||||||||
}, | ||||||||||||
"dataset_iterator": { | ||||||||||||
"class_name": "basic_classification_iterator", | ||||||||||||
|
@@ -62,8 +62,8 @@ | |||||||||||
], | ||||||||||||
"main": true, | ||||||||||||
"class_name": "keras_classification_model", | ||||||||||||
"save_path": "{MODEL_PATH}/model", | ||||||||||||
"load_path": "{MODEL_PATH}/model", | ||||||||||||
"save_path": "{MODEL_PATH}/new_model", | ||||||||||||
"load_path": "", | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert changes |
||||||||||||
"embedding_size": "#my_embedder.dim", | ||||||||||||
"n_classes": "#classes_vocab.len", | ||||||||||||
"kernel_sizes_cnn": [ | ||||||||||||
|
@@ -74,7 +74,7 @@ | |||||||||||
"filters_cnn": 256, | ||||||||||||
"optimizer": "Adam", | ||||||||||||
"learning_rate": 0.01, | ||||||||||||
"learning_rate_decay": 0.1, | ||||||||||||
"learning_rate_decay": 0.01, | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert changes |
||||||||||||
"loss": "binary_crossentropy", | ||||||||||||
"last_layer_activation": "softmax", | ||||||||||||
"coef_reg_cnn": 1e-3, | ||||||||||||
|
@@ -100,14 +100,17 @@ | |||||||||||
] | ||||||||||||
}, | ||||||||||||
"train": { | ||||||||||||
"epochs": 100, | ||||||||||||
"epochs": 10, | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert changes |
||||||||||||
"batch_size": 64, | ||||||||||||
"metrics": [ | ||||||||||||
"accuracy", | ||||||||||||
"f1_macro", | ||||||||||||
{ | ||||||||||||
"name": "roc_auc", | ||||||||||||
"inputs": ["y_onehot", "y_pred_probas"] | ||||||||||||
"inputs": [ | ||||||||||||
"y_onehot", | ||||||||||||
"y_pred_probas" | ||||||||||||
] | ||||||||||||
Comment on lines
+110
to
+113
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
} | ||||||||||||
], | ||||||||||||
"validation_patience": 5, | ||||||||||||
|
@@ -119,7 +122,31 @@ | |||||||||||
"valid", | ||||||||||||
"test" | ||||||||||||
], | ||||||||||||
"class_name": "nn_trainer" | ||||||||||||
"class_name": "nn_trainer", | ||||||||||||
"logger": [ | ||||||||||||
{ | ||||||||||||
"name": "TensorboardLogger", | ||||||||||||
"log_dir": "{MODELS_PATH}/sentiment_twitter/Tensorboard_logs" | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"name": "StdLogger" | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"name": "WandbLogger", | ||||||||||||
"API_Key":"be5cac1976dae2abd87fd045a7a101248c0a0253", | ||||||||||||
"init":{ | ||||||||||||
"project": "Tuning Hyperparameters", | ||||||||||||
"group": "Tuning lr & lr_decay", | ||||||||||||
"job_type":"lr=0.01, lr_decay=0.01", | ||||||||||||
"config": { | ||||||||||||
"description": "add any hyperprameter you want to monitor, architecture discription,..", | ||||||||||||
"learning_rate": 0.02, | ||||||||||||
"architecture": "CNN", | ||||||||||||
"dataset": "sentiment_twitter_data" | ||||||||||||
} | ||||||||||||
} | ||||||||||||
} | ||||||||||||
] | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove whole logger section |
||||||||||||
}, | ||||||||||||
"metadata": { | ||||||||||||
"variables": { | ||||||||||||
|
@@ -128,6 +155,10 @@ | |||||||||||
"MODELS_PATH": "{ROOT_PATH}/models", | ||||||||||||
"MODEL_PATH": "{MODELS_PATH}/classifiers/sentiment_twitter_v6" | ||||||||||||
}, | ||||||||||||
"requirements": [ | ||||||||||||
"{DEEPPAVLOV_PATH}/requirements/tf.txt", | ||||||||||||
"{DEEPPAVLOV_PATH}/requirements/fasttext.txt" | ||||||||||||
], | ||||||||||||
Comment on lines
+158
to
+161
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove lines |
||||||||||||
"download": [ | ||||||||||||
{ | ||||||||||||
"url": "http://files.deeppavlov.ai/datasets/sentiment_twitter_data.tar.gz", | ||||||||||||
|
@@ -143,4 +174,4 @@ | |||||||||||
} | ||||||||||||
] | ||||||||||||
} | ||||||||||||
} | ||||||||||||
} | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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.
revert changes