07a6cabcd92c9c5abf1955419e65b9900e0ff64e,anago/wrapper.py,Sequence,fit,#Sequence#,44
Before Change
embeddings=embeddings,
use_char=self.use_char,
use_crf=self.use_crf)
model.build()
model.compile(loss=model.get_loss(), optimizer=self.optimizer)
trainer = Trainer(model, preprocessor=p)
trainer.train(x_train, y_train, x_valid, y_valid,
After Change
embeddings=embeddings,
use_char=self.use_char,
use_crf=self.use_crf)
model, loss = model.build()
model.compile(loss=loss, optimizer=self.optimizer)
trainer = Trainer(model, preprocessor=p)
trainer.train(x_train, y_train, x_valid, y_valid,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: Hironsan/anago
Commit Name: 07a6cabcd92c9c5abf1955419e65b9900e0ff64e
Time: 2018-06-19
Author: light.tree.1.13@gmail.com
File Name: anago/wrapper.py
Class Name: Sequence
Method Name: fit
Project Name: Hironsan/anago
Commit Name: 07a6cabcd92c9c5abf1955419e65b9900e0ff64e
Time: 2018-06-19
Author: light.tree.1.13@gmail.com
File Name: tests/test_trainer.py
Class Name: TestTrainer
Method Name: test_train_no_character
Project Name: Hironsan/anago
Commit Name: 07a6cabcd92c9c5abf1955419e65b9900e0ff64e
Time: 2018-06-19
Author: light.tree.1.13@gmail.com
File Name: tests/test_trainer.py
Class Name: TestTrainer
Method Name: test_train_no_crf