You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you also add an option to view the probabilities in 'predict'?
I tried to do it by myself:
In class SoftmaxCrossEntropy I changed the function 'fprop' on
def fprop(self, x):
sm = self._softmax(x)
return ca.nnet.one_hot_decode(sm), sm
in class NeuralNetwork I change the function 'predict' to return both predictions and probabilities
in 'test_error()' I read two values:
y, yp = net.predict(test_input)
However, I always get an error 'too many values to unpack' for the 'test_error" function, which means that I do not reload it properly. Could you also explain how to do it correctly? Surprisingly I find two sources: in deeppy/deeppy and deeppy/build/lib/deeppy. Moreover, the upstack error appears in '/anaconda/lib/python2.7/site-packages/deeppy-0.1.dev0-py2.7.egg/deeppy/train/sgd.py', in the function 'val_error = val_error_fun()'. Could you clarify these details please?
Regards,
Sergey.
The text was updated successfully, but these errors were encountered:
Hi Anders,
Could you also add an option to view the probabilities in 'predict'?
I tried to do it by myself:
In class SoftmaxCrossEntropy I changed the function 'fprop' on
def fprop(self, x):
sm = self._softmax(x)
return ca.nnet.one_hot_decode(sm), sm
in class NeuralNetwork I change the function 'predict' to return both predictions and probabilities
in 'test_error()' I read two values:
y, yp = net.predict(test_input)
However, I always get an error 'too many values to unpack' for the 'test_error" function, which means that I do not reload it properly. Could you also explain how to do it correctly? Surprisingly I find two sources: in deeppy/deeppy and deeppy/build/lib/deeppy. Moreover, the upstack error appears in '/anaconda/lib/python2.7/site-packages/deeppy-0.1.dev0-py2.7.egg/deeppy/train/sgd.py', in the function 'val_error = val_error_fun()'. Could you clarify these details please?
Regards,
Sergey.
The text was updated successfully, but these errors were encountered: