probably fixed the bug in ANN::calc_output_scale with update_weights=true (ticket #558)
This commit is contained in:
parent
feb0de80e1
commit
2c03c14f7b
@ -635,7 +635,7 @@ void CvANN_MLP::calc_output_scale( const CvVectors* vecs, int flags )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
t = t*scale[j*2] + scale[2*j+1];
|
t = t*inv_scale[j*2] + inv_scale[2*j+1];
|
||||||
if( t < m1 || t > M1 )
|
if( t < m1 || t > M1 )
|
||||||
CV_ERROR( CV_StsOutOfRange,
|
CV_ERROR( CV_StsOutOfRange,
|
||||||
"Some of new output training vector components run exceed the original range too much" );
|
"Some of new output training vector components run exceed the original range too much" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user