feedforward function gives 3 values
Closed this issue · 2 comments
sejaldua commented
Don't we want one prediction value after calling the feedforward
function on a single point of our x vector? I am getting an array of 3 values. Does anyone know how to somehow squish this into 1 or are we supposed to work with 3?
ulfaslak commented
How did you instantiate your network? The sizes
argument to Network
when you instantiate it determines the number of neurons you want in each layer. So if you instantiated it along the lines of:
net = Network([2, 3])
Then you are asking for two layers of neurons (one layer of weights) where there are three output neurons: hence the trouble. But I'd need to see your code to confirm.
sejaldua commented
Ahh that explains it. Thank you.