search for: 304220

Displaying 1 result from an estimated 1 matches for "304220".

Did you mean: 30420
2007 Mar 27
1
Using nnet
I have a problem when using nnet to predict the negative values. For example : X = matrix(c(1,1,0,0,1,0,1,0),4,2) X Y = matrix(c(0,1,1,0)) - 0.5 # XOR - 0.5 Y nn = nnet(X,Y,size=3) val = predict(nn,X) val # this is expected to be close to Y, but it's not ! The 'val' is always positive. I tried to change the options, but the result isn't much better. Could someone give me an