Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Set a ANN_MLP as trained

Hello,

We are using ANN_MLP in a special way. We train a ANN_MLP and we save the network configuration in a .hpp file. Then we need to load the network configuration. We can not use the load function. Therefore we have to set the weight using getWeights() like that:

cv::Mat((128+1) , 100, CV_64F, WEIGHTS_01 ).copyTo(getWeights(1));

Is that correct?

We also need to set the attribut trained to True. We not find the way to do that. Do you know how to do that?

Thank you,