diff --git a/mlp.py b/mlp.py index 963aac53bb76fdbea952112fc3e136dff587cdd5..24a42ad250ee18d262fe732e2dc09b76206a3a45 100644 --- a/mlp.py +++ b/mlp.py @@ -137,15 +137,3 @@ def run_mlp_training(data_train, labels_train, data_test, labels_test,d_h,learni # Testing final_accuracy=test_mlp(w1,b1,w2,b2,data_test,labels_test) return train_accuracies, final_accuracy - -def evolution_learning_acc(split_factor,d_h,num_epoch): - # This function plots the evolution of the learning accuracy as a function of the number of epoches - path_batches=str(dirname)+"\\data\\cifar-10-batches-py"+str(num_batch) - (data,labels)=read_cifar(dir_batches) - (data_train,data_test,labels_train,labels_test)=split_dataset(data,labels,split_factor) - accuracy=train_mlp(w1,b1,w2,b2,data_train,labels_train,learning_rate,num_epoch)[4] - epochs =[i+1 for i in range(0,num_epoch,1)] - - plt.plot(epochs,accuracy) - plt.show() - plt.savefig("results\\mlp.png")