forked from Alexflex/HNNC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
printMLPEvalLog.m
31 lines (28 loc) · 923 Bytes
/
printMLPEvalLog.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
function [regresError, classError, numErrors, correct] = printMLPEvalLog(net, ds)
% Ôóíêöèÿ âûâîäèò ðåçóëüòàòû òåñòèðîâàíèÿ ÌÑÏ íà îïðåäåëåííîì ìíîæåñòâå
% ïðèìåðîâ
%
% [regresError, classError, numErrors, correct] = printMLPEvalLog(net, ds)
%
% Arguments
% net - îáó÷åííûé ÌÑÏ
% ds - ìíîæåñòâî ïðèìåðîâ
%
% Example
% [regresError, classError, numErrors, correct] = printMLPEvalLog(net, ds);
%
% See also
%
% Revisions
% Author: Vulfin Alex, Date: 17/11/2010
% Supervisor: Vulfin Alex, Date: 17/11/2010
% Author: (Next revision author), Date: (Next revision date)
[net, regresError, classError] = ...
mlpEvalSet(net, ds);
correct = 100*(1 - classError);
numErrors = classError*ds.count;
printMessage('\n\t\tregressError = %g', regresError);
printMessage('\n\t\tclassError = %g', classError);
printMessage('\n\t\tnumErrors = %d', numErrors);
printMessage('\n\t\tcorrect = %5.2f%', correct);
end %of function