-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPlotResults.m
47 lines (36 loc) · 1.08 KB
/
PlotResults.m
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%
% Copyright (c) 2013, Research Infinite Solutions llp (http://www.researchinfinitesolutions.com/)
%
%
% Project Code: YPFZ101
% Project Title: Stock Market prediction using ANFIS
% Publisher: (http://www.researchinfinitesolutions.com/)
%
% Developer: Ruchi Mehra (Member of Research Infinite Solutions llp)
%
% Contact Info: [email protected], [email protected]
% For training in Stock market and Data Science contact at ::::
function PlotResults(targets, outputs, Name)
errors=targets-outputs;
MSE=mean(errors.^2);
RMSE=sqrt(MSE);
error_mean=mean(errors);
error_std=std(errors);
subplot(2,2,[1 2]);
plot(targets,'k');
hold on;
plot(outputs,'r');
legend('Target','Output');
title(Name);
xlabel('Sample Index');
grid on;
subplot(2,2,3);
plot(errors);
legend('Error');
title(['MSE = ' num2str(MSE) ', RMSE = ' num2str(RMSE)]);
grid on;
subplot(2,2,4);
histfit(errors, 50);
title(['Error Mean = ' num2str(error_mean) ', Error St.D. = ' num2str(error_std)]);
end