2012-10-01 00:44:56 -0600 | received badge | ● Student (source) |
2012-09-30 11:14:42 -0600 | received badge | ● Editor (source) |
2012-09-30 11:13:47 -0600 | asked a question | Error with UPDATE_WEIGHTS and neural networks Hello, I get an error when using UPDATE_WEIGHTS in order to adapt the weights of a neural network without reinitializing them. The error states: OpenCV Error: One of arguments' values is out of range (Some of new output train ing vector components run exceed the original range too much) in CvANN_MLP::calc _output_scale, file ......\src\opencv\modules\ml\src\ann_mlp.cpp, line 638 I am using OpenCV 2.4.2 (before I tried with 2.3.1 and got the same error). My code looks like this: My feature vectors have been previously normalized to have zero mean and unit standard deviation. The first iteration of the loop executes correctly, but afterwards once the UPDATE_WEIGHTS flag is set, the program stops. Is this a bug in the OpenCV code or should I do something else? Thanks in advance! jmr |