-
Notifications
You must be signed in to change notification settings - Fork 0
/
nn_Testing.m
21 lines (20 loc) · 967 Bytes
/
nn_Testing.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function [Categoryerrors,Categoryperformance,Emotionerrors,Emotionperformance]=nn_Testing()
MFile= load('nnmodels');
File=load('speech');
Features= transpose(File.features);
outputs = MFile.NNStruct_categories(Features);
Categoryerrors = gsubtract(transpose(File.categories_nn),outputs);
Categoryperformance = perform(MFile.NNStruct_categories,transpose(File.categories_nn),outputs);
% Plots
figure, plotconfusion(transpose(File.categories_nn),outputs)
figure, ploterrhist(Categoryerrors)
Categoryerrors=transpose(Categoryerrors);
Categoryerrors=mean(Categoryerrors);
outputs = MFile.NNStruct_emotions(Features);
Emotionerrors = gsubtract(transpose(File.emotions_nn),outputs);
Emotionperformance = perform(MFile.NNStruct_emotions,transpose(File.emotions_nn),outputs);
% Plots
figure, plotconfusion(transpose(File.emotions_nn),outputs)
figure, ploterrhist(Emotionerrors)
Emotionerrors=transpose(Emotionerrors);
Emotionerrors=mean(Emotionerrors);