2f1f4adb504fd6a91027a091a4e5e911a4d7c905,finetune/datasets/mcdonalds_yelp_sentiment.py,,,#,39
Before Change
model = MultiLabelClassifier(verbose=True, n_epochs=2)
trainX, testX, trainY, testY = train_test_split(dataset.Text, dataset.Target, test_size=0.3, random_state=42)
model.fit(trainX, trainY)
accuracy = np.mean(model.predict(testX) == testY)
print("Test Accuracy: {:0.2f}".format(accuracy))
After Change
print("Threshold = {}".format(threshold))
print(classification_report(
model.label_encoder.transform(testY),
model.label_encoder.transform(model.predict(testX, threshold=threshold))
))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: IndicoDataSolutions/finetune
Commit Name: 2f1f4adb504fd6a91027a091a4e5e911a4d7c905
Time: 2018-08-03
Author: benlt@hotmail.co.uk
File Name: finetune/datasets/mcdonalds_yelp_sentiment.py
Class Name:
Method Name:
Project Name: EpistasisLab/tpot
Commit Name: 56aafda07e62498a4677a9c81b6c160a620d2811
Time: 2017-05-22
Author: weixuanf@mail.med.upenn.edu
File Name: tests.py
Class Name:
Method Name: test_StackingEstimator_3
Project Name: NifTK/NiftyNet
Commit Name: 03e8525394683bb5da7668330cd910c87c7d4501
Time: 2017-04-03
Author: l.fidon@ucl.ac.uk
File Name: data_augmentation.py
Class Name:
Method Name: rand_intensity_normalisation