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


                   callbacks=[ModelCheckpoint("weights/DenseNet-40-12-CIFAR10.h5", monitor="val_acc", save_best_only=True,
                                              save_weights_only=True)],
                   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]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: havakv/pycox
Commit Name: b00dcfd14da97cd213a72129911d48d7d62cfac6
Time: 2018-04-04
Author: kvamme@samba8.ad.nr.no
File Name: pycox/metrics.py
Class Name:
Method Name: brier_score


Project Name: zo7/deconvfaces
Commit Name: 41ef0bf4ece3daf13a02b14c79eb7ddebb42bc0c
Time: 2016-09-04
Author: zo7.flynn@gmail.com
File Name: facegen/generate.py
Class Name:
Method Name: generate_from_yaml