From faf6c3f1d8266b5921e26c5fc8c3a83ebcd910da Mon Sep 17 00:00:00 2001 From: Aya SAIDI <aya.saidi@auditeur.ec-lyon.fr> Date: Tue, 8 Nov 2022 01:29:18 +0100 Subject: [PATCH] Update mlp.py --- mlp.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mlp.py b/mlp.py index 963aac5..24a42ad 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") -- GitLab