Home > Archive > Matlab > June 2007 > Corrections to MATLAB's NEWRB
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Corrections to MATLAB's NEWRB
|
|
| Greg Heath 2007-06-30, 7:12 pm |
| Corrections to MATLAB's NEWRB
1. Contrary to the documentation, NEWRB uses SSE
instead of MSE. The following corrections apply:
a. Replace two occurences of
sse = sumsq(t-a2);
with
MSE = mse(t-a2);
b. Replace all other occurences of SSE and sse with MSE.
2. Insert MSE calculation for 0 neurons:
meant = repmat(mean(t')',1,q);
MSE0 = mse(t-meant);
3. Correct Tabulation summary for 0 and 1 neurons:
tr.perf(1) = MSE0;
tr.perf(2) = MSE;
if isfinite(df)
fprintf( 'NEWRB, neurons = 0, MSE = %g/n', MSE0 );
fprintf( 'NEWRB, neurons = 1, MSE = %g/n', MSE1 );
end
Hope this helps.
Greg
| |
| Greg Heath 2007-06-30, 7:12 pm |
| On Jun 30, 3:30 pm, Greg Heath <h...@alumni.brown.edu> wrote:
> Corrections to MATLAB's NEWRB
>
> 1. Contrary to the documentation, NEWRB uses SSE
> instead of MSE. The following corrections apply:
>
> a. Replace two occurences of
>
> sse = sumsq(t-a2);
>
> with
>
> MSE = mse(t-a2);
>
> b. Replace all other occurences of SSE and sse with MSE.
>
> 2. Insert MSE calculation for 0 neurons:
>
> meant = repmat(mean(t')',1,q);
> MSE0 = mse(t-meant);
>
> 3. Correct Tabulation summary for 0 and 1 neurons:
>
> tr.perf(1) = MSE0;
> tr.perf(2) = MSE;
> if isfinite(df)
> fprintf( 'NEWRB, neurons = 0, MSE = %g/n', MSE0 );
> fprintf( 'NEWRB, neurons = 1, MSE = %g/n', MSE1 );
> end
Whoops! ... Replace MSE1 with MSE.
Hope this helps.
Greg
|
|
|
|
|