mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 20:09:23 +08:00
ml(ANN_MLP): ensure that train() call is always successful
This commit is contained in:
parent
289a8da39e
commit
00e43a9022
@ -948,7 +948,7 @@ public:
|
||||
trained = true; // Enable call to CalcError
|
||||
int iter = simulatedAnnealingSolver(s, params.initialT, params.finalT, params.coolingRatio, params.itePerStep, NULL, params.rEnergy);
|
||||
trained =false;
|
||||
return iter;
|
||||
return iter + 1; // ensure that 'train()' call is always successful
|
||||
}
|
||||
|
||||
int train_backprop( const Mat& inputs, const Mat& outputs, const Mat& _sw, TermCriteria termCrit )
|
||||
|
Loading…
Reference in New Issue
Block a user