516c2a4c7e8f92e1ea299e966215c2ffe4c5b980,cifar10.py,,,#,14

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

After Change



(trainX, trainY), (testX, testY) = cifar10.load_data()

trainX = trainX.astype("float32")
testX = testX.astype("float32")

trainX /= 255.
testX /= 255.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: titu1994/DenseNet
Commit Name: 516c2a4c7e8f92e1ea299e966215c2ffe4c5b980
Time: 2016-12-07
Author: titu1994@gmail.com
File Name: cifar10.py
Class Name:
Method Name:


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 343bdbd36fe54dcbedaa701cc3bfe40ac1517d8e
Time: 2015-05-27
Author: fmfnogueira@gmail.com
File Name: UnbalancedDataset.py
Class Name: SMOTE
Method Name: resample


Project Name: fabianp/mord
Commit Name: 407a5112ab430db6f23fc4317a7400ada797d274
Time: 2015-10-21
Author: f@bianp.net
File Name: examples/bench.py
Class Name:
Method Name: