If I understand correctly, the sum you want is:
> (weightlearn y) + (jumblerate@rand w y) + w y
>
>
In C syntax, I want
new_w =
learnrate*learn(old_w, old_i, old_o, new_i, new_o )
+ jumblerate * random_matrix_of_-1s_and_1s
+ rememberreate * old_w
where the rates are constants. My idea was to put the three functions in a
list and sum over them, but I guess that's the Haskell talking. I did kinda
want to put the rates into some tidy place, but it's not essential.
But if by sum you meant +/ I am not sure that this is a good idea. +/
> would make sense if you had a reason for these three things to be in a
> list already, but since you are computing each value independently,
> forming a list form them seems like a meaningless operation.
>
>
That seems like a funny thing to say. I thought J loved making lists. I'd
like to get it working both ways just as a learning exercise. My program
works already but it bugs me that I can't seem to get this function list
working when it clearly should work in principle given that I already made
it half work out of context. I got this far:
a +/@((3 2 1)&*)"2@(+,-,*)"0 b
15 28
43 60
but when I try to factor out the (3 2 1)&* it barfs. Must be a simple matter
of syntax. And putting w&[ or w@[ in place of + causes problems too.
But now it's my bedtime and my weekend is booked out.
Adrian.
> I hope this helps,
>
> --
> Raul
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm