b31b0157be35bda89ce8581a494213572b94182b,tests/eval_test.py,EvaluatorTest,test_eval,#EvaluatorTest#,13
Before Change
class EvaluatorTest(unittest.TestCase):
def test_eval(self):
DATA_ROOT = os.path.join(os.path.dirname(__file__), "../data/conll2003/en/ner")
SAVE_ROOT = os.path.join(os.path.dirname(__file__), "../models")
model_config = ModelConfig()
After Change
config.vocab_size = len(p.vocab_word)
config.char_vocab_size = len(p.vocab_char)
model = SeqLabeling(config, ntags=len(p.vocab_tag))
model.load(filepath=os.path.join(SAVE_ROOT, "model_weights.h5"))
evaluator = anago.Evaluator(model, preprocessor=p)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: Hironsan/anago
Commit Name: b31b0157be35bda89ce8581a494213572b94182b
Time: 2017-11-18
Author: light.tree.1.13@gmail.com
File Name: tests/eval_test.py
Class Name: EvaluatorTest
Method Name: test_eval
Project Name: automl/auto-sklearn
Commit Name: 679e77b78f7ba906cd2e6aa18366fa8facd153db
Time: 2017-02-11
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_evaluation/test_test_evaluator.py
Class Name: TestEvaluator_Test
Method Name: test_datasets
Project Name: Hironsan/anago
Commit Name: c2e63ae0cec5359300cd8dbc93ee47f1fbd582aa
Time: 2017-11-18
Author: light.tree.1.13@gmail.com
File Name: tests/train_test.py
Class Name: TrainerTest
Method Name: test_train