Commit 8e7a9ac7 authored by thovl's avatar thovl
Browse files

ajout des chemins

parent 89d8ac3d
......@@ -2,7 +2,7 @@
%Trouver les poids a l'aide de la fonction de retro propagation des erreurs
%et de la methode du gradient
dataTrain = load('/Users/thov/Desktop/perceptron/Programmes-2/DataSimulation/DataTrain_2Classes_Perceptron.mat');
dataTrain = load('./DataSimulation/DataTrain_2Classes_Perceptron.mat');
x_partiel = dataTrain.data;
x = ones(3,1000);
x(2:3, :) = x_partiel;
......@@ -51,7 +51,7 @@ subplot(4,1,4), plot(f(:)), title('f');
%%
%Test
dataTest = load('/Users/thov/Desktop/perceptron/Programmes-2/DataSimulation/DataTest_2Classes_Perceptron.mat');
dataTest = load('./DataSimulation/DataTest_2Classes_Perceptron.mat');
cTest = dataTest.cTest;
xTest_partiel = dataTest.dataTest;
......
%%
%load et mise en forme de data_train
data0 = load('/Users/thov/Desktop/perceptron/Programmes-2/Data/DigitTrain_0.mat');
data0 = load('./Data/DigitTrain_0.mat');
imgs0 = data0.imgs;
labels0 = data0.labels;
data1 = load('/Users/thov/Desktop/perceptron/Programmes-2/Data/DigitTrain_1.mat');
data1 = load('./Data/DigitTrain_1.mat');
imgs1 = data1.imgs;
labels1 = data1.labels;
......@@ -69,11 +69,11 @@ disp('Calcul des poids OK')
%%
%load et mise en forme de data_test
dataTest0 = load('/Users/thov/Desktop/perceptron/Programmes-2/Data/DigitTest_0.mat');
dataTest0 = load('./Data/DigitTest_0.mat');
imgsTest0 = dataTest0.imgs;
labelsTest0 = dataTest0.labels;
dataTest1 = load('/Users/thov/Desktop/perceptron/Programmes-2/Data/DigitTest_1.mat');
dataTest1 = load('./Data/DigitTest_1.mat');
imgsTest1 = dataTest1.imgs;
labelsTest1 = dataTest1.labels;
......
%%
%Load data
dataTrain = load('/Users/thov/Desktop/perceptron/Programmes-2/DataSimulation/DataTrain_2Classes_Perceptron_2.mat');
dataTrain = load('./DataSimulation/DataTrain_2Classes_Perceptron_2.mat');
x_partiel = dataTrain.data;
x = ones(3,2000);
x(2:3, :) = x_partiel;
c = dataTrain.c;
dataTest = load('/Users/thov/Desktop/perceptron/Programmes-2/DataSimulation/DataTest_2Classes_Perceptron_2.mat');
dataTest = load('./DataSimulation/DataTest_2Classes_Perceptron_2.mat');
x_partieltest = dataTest.dataTest;
xTest = ones(3,2000);
xTest(2:3, :) = x_partieltest;
......
......@@ -2,7 +2,7 @@ for k = 0:9
suffix=num2str(k);
varName=sprintf('data%s',suffix);
k1 = int2str(k);
assignin('base',varName,load(strcat('/Users/thov/Desktop/perceptron/Programmes-2/Data/DigitTrain_',k1,'.mat')));
assignin('base',varName,load(strcat('./Data/DigitTrain_',k1,'.mat')));
end
imgs0 = data0.imgs;
......@@ -140,7 +140,7 @@ for k = 0:9
suffix=num2str(k);
varName=sprintf('dataTEST%s',suffix);
k1 = int2str(k);
assignin('base',varName,load(strcat('/Users/thov/Desktop/perceptron/Programmes-2/Data/DigitTest_',k1,'.mat')));
assignin('base',varName,load(strcat('./Data/DigitTest_',k1,'.mat')));
end
imgsTEST0 = dataTEST0.imgs;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment