3a3dc678e50e60f9cf05e95e992ab873046c1b8f,cifar10.py,,,#,14
Before Change
// validation_data=(testX, Y_test),
// nb_val_samples=testX.shape[0], verbose=1)
yPreds = model.predict(testX)
yPred = np.argmax(yPreds, axis=1)
yTrue = testY
accuracy = metrics.accuracy_score(yTrue, yPred) * 100
error = 100 - accuracy
print("Accuracy : ", accuracy)
print("Error : ", error)
After Change
validation_data=test_generator.flow(testX, testY, batch_size=batch_size),
nb_val_samples=testX.shape[0], verbose=1)
scores = model.evaluate_generator(test_generator.flow(testX, testY, nb_epoch), testX.shape[0])
print("Accuracy = %f" % (100 * scores[1]))
print("Error = %f" % (100 - 100 * scores[1]))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: titu1994/DenseNet
Commit Name: 3a3dc678e50e60f9cf05e95e992ab873046c1b8f
Time: 2016-12-05
Author: titu1994@gmail.com
File Name: cifar10.py
Class Name:
Method Name:
Project Name: autorope/donkeycar
Commit Name: 468b7ab7a48a6712991dcbb4ec399a4dc95bd091
Time: 2016-12-14
Author: wroscoe@gmail.com
File Name: manage.py
Class Name:
Method Name: drive_loop
Project Name: geomstats/geomstats
Commit Name: f968d7bec6552b6986731a4dfbb0a524d01a29a2
Time: 2020-01-16
Author: thomas.l.p.gerald@gmail.com
File Name: examples/plot_kmean_poincare_disk.py
Class Name:
Method Name: main