fafa0d446b657f2261b9676a229e975f2ed9db2d,qanta/guesser/classify/learn_classifiers.py,,evaluate,#Any#Any#Any#Any#,113

Before Change


                protocol=pickle.HIGHEST_PROTOCOL)

    train_accuracy = nltk.classify.util.accuracy(classifier, train_vector)
    test_accuracy = nltk.classify.util.accuracy(classifier, test_vector)
    log.info("accuracy train: {0}".format(train_accuracy))
    log.info("accuracy test: {0}".format(test_accuracy))

After Change


    test_labels = []
    for e in test_vector:
         test_feats.append(e[0])
         test_labels.append(e[1])

    classifier = OneVsRestClassifier(LogisticRegression(C=10), n_jobs=-1)
    classifier.fit(train_feats, train_labels)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Pinafore/qb
Commit Name: fafa0d446b657f2261b9676a229e975f2ed9db2d
Time: 2016-07-17
Author: ubuntu@ip-172-31-18-5.us-west-1.compute.internal
File Name: qanta/guesser/classify/learn_classifiers.py
Class Name:
Method Name: evaluate


Project Name: bearpaw/pytorch-pose
Commit Name: dc9a7266ed6693f9a835ab411f85fa56e77065a8
Time: 2017-06-14
Author: platero.yang@gmail.com
File Name: example/mpii.py
Class Name:
Method Name: train


Project Name: keras-team/keras
Commit Name: eb7cf7376b6c81f5d1792441f772de2771563c61
Time: 2015-04-27
Author: francois.chollet@gmail.com
File Name: examples/reuters_mlp.py
Class Name:
Method Name: