mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Add config.py for paddle example
This commit is contained in:
parent
605144398b
commit
d0c999e0ad
14
examples/paddle/sentiment_bilstm/config.py
Normal file
14
examples/paddle/sentiment_bilstm/config.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from paddle.trainer_config_helpers import *
|
||||
|
||||
define_py_data_sources2(train_list='train.list',
|
||||
test_list='test.list',
|
||||
module="dataprovider",
|
||||
obj="process")
|
||||
|
||||
settings(
|
||||
batch_size=128,
|
||||
learning_rate=2e-3,
|
||||
learning_method=AdamOptimizer(),
|
||||
regularization=L2Regularization(8e-4),
|
||||
gradient_clipping_threshold=25
|
||||
)
|
Loading…
Reference in New Issue
Block a user