close all;clear all;clc;

load('test.mat');
[weights weights2] = getWeights();

inputC = x;
[X Y Z] = size(inputC);

%% Usefull stuff
steepness = 0.5;
max = 255;
min = 0;

%% Normalize them

t = ones(10,1);
inrow = inputC;%reshape (inputC,X*Y,Z);

iter = 1:10;
    
input = ((inrow - min)./(max-min))*2 - 1;

%% Pame gia prediction

p = predict(weights,weights2, input,steepness);

load('target.mat');

error = sum(p ~= t);
error = error/size(t,1);

fprintf('MSE: %f',error);

    

   

