Skip to content

Commit 39ef15c

Browse files
authored
Update config for text-classification (#325)
* Update config for text-classification Update config for text-classification for issue #293 * Update config.yaml * Update config.yaml * Update config.yaml
1 parent 2c63cf3 commit 39ef15c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#::= from_template_common ::#
2-
model: bert-base-uncased
3-
model_dir: /tmp/model
4-
tokenizer_dir: /tmp/tokenizer
5-
num_classes: 1
6-
drop_out: .3
7-
n_fc: 768
8-
weight_decay: 0.01
9-
num_warmup_epochs: 0
10-
max_length: 256
2+
model: bert-base-uncased # model for text classification
3+
model_dir: /tmp/model # path of model directory
4+
tokenizer_dir: /tmp/tokenizer # path of directory containing tokenizer
5+
num_classes: 1 # number of classes
6+
drop_out: .3 # drop out rate
7+
n_fc: 768 # number of fully-connected layers
8+
weight_decay: 0.01 # parameter for weight decay, default, 1e-4.
9+
num_warmup_epochs: 0 # number of warm-up epochs before learning rate decay
10+
max_length: 256 # maximum length of texts
1111
lr: 0.00005

0 commit comments

Comments
 (0)