yh
abe5ec7261
Merge branch 'trainer' of github.com:FengZiYjun/fastNLP into trainer
# Conflicts:
# test/core/test_trainer.py
7 years ago
yh
a1a41c2d8b
1. unused报错运行错误修复
2. loss中修复一个错误
3. metric中fast_param调整
7 years ago
FengZiYjun
4b099bb0dd
* add tqdm in requirements.txt
* fix FieldArray type check bugs
7 years ago
yh
1fb1df4a31
1. metric修改fast_param
2. trainer中update_every改为print_every, 因为update_every可能引起optimizer update的误解
3. fieldarray content支持使用np.ndarray初始化
7 years ago
yh
785c41ded5
Merge branch 'trainer' of github.com:FengZiYjun/fastNLP into trainer
# Conflicts:
# fastNLP/core/dataset.py
# fastNLP/core/trainer.py
# test/core/test_trainer.py
Trainer support print_train and tqdm train.
7 years ago
yh
beb55f5288
* change trainer iterating into tqdm
7 years ago
FengZiYjun
513876d5db
Updates:
* fix losses的_fast_param_map的bug
* Trainer添加sampelr初始化参数,并调整参数顺序
* refine codes
7 years ago
FengZiYjun
f62060339e
All tests pass. Ready to merge.
* 更新Loss的接口形参跟metric保持一致
* 添加对几种loss的测试
* embed_loader采用维度独立的方法采样
* 对应测试代码的修改
7 years ago
FengZiYjun
11c82ab2e7
跑通test_trainer.py,联调结束,准备发布
7 years ago
FengZiYjun
201f5109d6
Updates:
* improve Loss initialization interface
* improve test codes for trainer
7 years ago
FengZiYjun
125c2718e4
Update
* fix bug in DataSet.split
* fix bugs in FieldArray, to allow content as a list
* fix bug in losses check
* ...
7 years ago
FengZiYjun
8a7077fed2
更新Optimizer:
optimizer.SGD(lr=xxx);如果没有传入parameters,则在trainer中帮他加入parameter
7 years ago
FengZiYjun
3d66975091
* refine code comments
* refine code style
* set up unit tests for Batch, DataSet, FieldArray
* remove a lot of out-of-date unit tests, to get testing passed
7 years ago
FengZiYjun
090f7aef5b
* fixing unit tests
7 years ago
yunfan
a4c9786ca4
update dataset & loader
7 years ago
xuyige
91f3d97ace
Update to new version of framework
7 years ago
FengZiYjun
f2fc98b5e6
add Field support in Predictor:
- apply DataSet in Predictor; remove sub-predictors; add "task" argument to specify which task to predict, as how Trainer/Tester did.
- remove Action class
- add helper function for DataSet, to create DataSet easily
- more code comments
- clean up unnecessary codes
- add unit tests for Batch, Predictor, Preprocessor, Trainer, Tester
7 years ago
xuyige
812160493e
add test code for testing trainer
7 years ago