244c6805387c01208c0307fcf8895271074dde94,finetune/datasets/reuters.py,,,#,73
Before Change
exit()
// print(annotation_report(testY, predictions))
model.config.float_16_predict=False
model.config.predict_batch_size = 32
predictions_fp16 = model.predict(testX * 100)
// print(annotation_report(testY, predictions_fp16))
exit()
for x, x16 in zip(predictions, predictions_fp16):
print(x)
print(x16)
input()
After Change
random_state=42
)
model = SequenceLabeler(batch_size=1, n_epochs=3, val_size=0.0, max_length=512, chunk_long_sequences=True, subtoken_predictions=False, crf_sequence_labeling=True, multi_label_sequences=False)
model.fit(trainX, trainY)
predictions = model.predict(testX)
print(predictions)
print(annotation_report(testY, predictions))
sequence_labeling_token_confusion(testX, testY, predictions)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: IndicoDataSolutions/finetune
Commit Name: 244c6805387c01208c0307fcf8895271074dde94
Time: 2020-04-23
Author: benlt@hotmail.co.uk
File Name: finetune/datasets/reuters.py
Class Name:
Method Name:
Project Name: IndicoDataSolutions/finetune
Commit Name: 00b52a1fc5c30fc663108514e9670fbb8659f0c8
Time: 2018-07-03
Author: work@Bens-MacBook.local
File Name: tests/test_general_api.py
Class Name: TestLanguageModelClassifier
Method Name: test_multifield_classify
Project Name: IndicoDataSolutions/finetune
Commit Name: 0f7826d473d8df6f00892cd819e47704b519daba
Time: 2018-07-03
Author: work@Bens-MacBook.local
File Name: tests/test_general_api.py
Class Name: TestLanguageModelClassifier
Method Name: test_multifield_classify