Supplying connection weights to CvANN_MLP::predict

asked 2012-12-12 14:38:08 -0500

zerowords gravatar image

updated 2012-12-12 14:42:22 -0500

Outside of openCV, I have trained a neural network with the following structure.

  1. 169 input nodes getting binary inputs [-1,1]
  2. 15 hidden nodes with bias
  3. 13 output nodes producing binary outputs [0,1]
  4. sigmoid (logistic) activation functions

I have all the MAT weights and biases.

How do I supply this information to CvANN_MLP?

I have been reading the docs at the following links but I don't see any opportunity to input the weights I have developed, and I don't understand C++ so the input types MAT& and CvMat* are a mystery for me, who hopes to develop this app in objective-c.

CvANN_MLP::CvANN_MLP, CvANN_MLP::create, CvANN_MLP::predict

edit retag flag offensive close merge delete