This forum is disabled, please visit https://forum.opencv.org

2015-04-02 07:30:36 -0500 | received badge | ● Student (source) |

2015-04-01 15:41:20 -0500 | asked a question | Machine Learning, After training, how exactly does it get a prediction? So after you have a machine learning algorithm trained, with your layers, nodes, and weights, how exactly does it go about getting a prediction for an input vector? I am using MultiLayer Perceptron (neural networks). From what I currently understand, you start with your input vector to be predicted. Then you send it to your hidden layer(s) where it adds your bias term to each data point, then adds the sum of the product of each data point and the weight for each node (found in training), then runs that through the same activation function used in training. Repeat for each hidden layer, then does the same for your output layer. Then each node in the output layer is your prediction(s). Is this correct? I got confused when using opencv to do this, because it says when you use the function predict: "If you are using the default cvANN_MLP::SIGMOID_SYM activation function with the default parameter values fparam1=0 and fparam2=0 then the function used is y = 1.7159 So, I'm not quite sure what this means. Where does the tanh function come into play? Can anyone clear this up please? Thanks for the time! Since this is a general question, and not code specific, I did not post any code with it. |

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.