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
model.load_weights("weights/DenseNet-40-12-CIFAR10.h5")
print("Model loaded.")
model.fit_generator(generator.flow(trainX, Y_train, batch_size=batch_size), samples_per_epoch=len(trainX), nb_epoch=nb_epoch,
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),
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: ufal/npfl114
Commit Name: 65869e202012462ad86ccd71e841bdf3f406e685
Time: 2019-03-20
Author: milan@strakovi.com
File Name: labs/02/gym_cartpole_evaluate.py
Class Name:
Method Name:
Project Name: thoughtworksarts/EmoPy
Commit Name: ccd0eb54b8541c4814fa1028b3b1e65c8fb9291a
Time: 2017-12-19
Author: aperez@thoughtworks.com
File Name: fer/main.py
Class Name:
Method Name: