From: Nghia Ho Date: Fri, 3 Jan 2014 03:18:07 +0000 (+1100) Subject: Improved documentation for neural network X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~652^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3e24f3cbff8a5f1503ff45cdf8d1d8118e4c049;p=platform%2Fupstream%2Fopencv.git Improved documentation for neural network --- diff --git a/modules/ml/doc/neural_networks.rst b/modules/ml/doc/neural_networks.rst index 0496e22..776bf24 100644 --- a/modules/ml/doc/neural_networks.rst +++ b/modules/ml/doc/neural_networks.rst @@ -240,6 +240,7 @@ This method applies the specified training algorithm to computing/adjusting the The RPROP training algorithm is parallelized with the TBB library. +If you are using the default ``cvANN_MLP::SIGMOID_SYM`` activation function then the output should be in the range [-1,1], instead of [0,1], for optimal results. CvANN_MLP::predict ------------------ @@ -257,6 +258,8 @@ Predicts responses for input samples. The method returns a dummy value which should be ignored. +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*tanh(2/3 * x), so the output will range from [-1.7159, 1.7159], instead of [0,1]. + CvANN_MLP::get_layer_count -------------------------- Returns the number of layers in the MLP.