FengZiYjun
6129a31c1d
* fix tests
* clean up unused codes
7 years ago
FengZiYjun
f26f11608b
* 更新教程,放在在./tutorial
* remove unused codes in metrics.py
* add tests for DataSet
* add tests for FieldArray
* add tests for metrics.py
* fix predictor, add tests for predictor
* fix bucket sampler, add tests for bucket sampler
7 years ago
FengZiYjun
27833d06ae
FieldArray only check type when is_input or is_target is set.
7 years ago
FengZiYjun
661780b975
Improve FieldArray. Support nested list and a list of np.array
7 years ago
FengZiYjun
6839bb91cc
Add auto type detection/conversion in FieldArray
* In init, detect content type to be Python int, float, or str.
* In append(), check type consistence.
* In init & append(), int will be cast into float if they occur together.
* Map Python type into numpy dtype
* Raise error if type detection fails.
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
837bef47dc
* add unit tests for instance, vocabulary
* remove and fix other unit tests
* add more code comments
7 years ago