February 18, 2016

Feed Forward NN in Matlab

Matlab is interesting because of the emphasis on vector math. I’ve been looking at a simple feedforward vector matrix for neural networks in matlab. Here’s the basic concepts of how to impliment one ( so I can do it again if I ever need to… )

FeedForwardToOutput = sigmoid(t2 * FeedForwardToHidden); % output to the number of final classifiers.

After you run this, FeedForwardToOutput will contain a vector “score” for a single entity line, with “1” in the “macthing” positions of this vector, and “0” in the non-matching. Ideally, you should only have one “1” and the rest “0” for multi-class classifications, but that’s a function of training, not this math to compute the forward values of the NN. Now, you’d need to figure out how to convert this score vector to something that makes sense to your use case.