BINGO is right.
That did it.
I'll have to look at why.

I tried using normalrand from stats but that did not change the results,
like BINGO.

Thank you, so much,

On Wed, May 15, 2019 at 6:30 PM 'Mike Day' via Programming <
[email protected]> wrote:

> BINGO!
>
> I'd misread that hidden_layer line. Try this rather inefficient
> get-around which does achive what they intend:
>
> dhidden =. (hidden_layer >0) * dscores dot |:W2
>
> and then, Hey Presto!
>
> cc =: train 10000
>
> 0 1.09876
>
> 1000 0.556147
>
> 2000 0.2535
>
> 3000 0.240415
>
> 4000 0.238063
>
> 5000 0.237042
>
> 6000 0.236117
>
> 7000 0.235589
>
> 8000 0.23537
>
> 9000 0.235135
>
> 10000 0.235025
>
> $h_l =. 0>.(>1{cc) +"1 X dot >0{cc
>
> 300 100
>
> $sc =. (>3{cc) +"1 h_l dot >2{cc
>
> 300 3
>
> $predicted_class =. (i.>./)"1 sc
>
> 300
>
> mean predicted_class = classes
>
> 0.996667
>
>
> I'm using rand1 =: 0.01 * rnorm,  but that might not matter much...
>
>
> And so to bed,
>
>
> Mike
>
>
> --
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to