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

After Change


                   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]))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: autonomio/talos
Commit Name: e43b9c2895e18251dddc76da6e3a4e81fe00f98a
Time: 2019-08-03
Author: mailme@mikkokotila.com
File Name: test_script.py
Class Name:
Method Name:


Project Name: yahoo/TensorFlowOnSpark
Commit Name: 07494c02e602c7526579d90150404e38b122fbe3
Time: 2018-12-07
Author: leewyang@gmail.com
File Name: examples/mnist/keras/mnist_mlp_estimator.py
Class Name:
Method Name: main_fun