-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_resultat.m
More file actions
30 lines (28 loc) · 781 Bytes
/
plot_resultat.m
File metadata and controls
30 lines (28 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function [retval] = plot_resultat (input,w1,w2,y)
in = importdata('zoo.txt',',');
resultat_validation=[];
resultat_test=[];
for i=44:48
[xx,output]= feedforward(input(i,:),w1,w2);
[M1,I1] = max(output(1,:));
resultat_validation=[resultat_validation;in(i,18),I1];
end
for i=49:58
[xx,output]= feedforward(input(i,:),w1,w2);
[M2,I2] = max(output(1,:));
resultat_test=[resultat_test;in(i,18),I2];
end
figure
subplot(2,2,1);
plot(resultat_validation(:,1),'r');
title("y validation");
subplot(2,2,2);
plot(resultat_validation(:,2),'b');
title("y' validation");
subplot(2,2,3);
plot(resultat_test(:,1),'r');
title("y test");
subplot(2,2,4);
plot(resultat_test(:,2),'b');
title("y' test");
endfunction