Ask Your Question

What the TermCriteria means in ANN_MLP

asked 2017-03-21 23:16:44 -0600

wrp gravatar image

updated 2017-03-22 00:18:53 -0600


Recently, I have used the ANN_MLP module. I read the document for this module. But I still doubt about this parameter. What the TermCriteria::COUNT / TermCriteria::MAX_ITER / TermCriteria::EPS specifically means in ANN_MLP ?

Thank you very much! : )

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-03-22 04:01:14 -0600

berak gravatar image

the TermCriteria determines, when to stop the learning.

you can set a maximum iteration count (MAX_ITER) and a minimum error or network loss (EPS)

the flags specify, which criterion to use, you can set either of them, or both (MAX_ITER | EPS).

edit flag offensive delete link more


The document says:

EPS is desired accuracy or change in parameters at which the iterative algorithm stops

So I don't know in ANN_MLP, it indicates accuracy or change in parameters?

wrp gravatar imagewrp ( 2017-03-22 04:17:30 -0600 )edit

it's accuracy.

berak gravatar imageberak ( 2017-03-22 04:28:42 -0600 )edit

Not exactly correct.

Someone told me it's explained in the documentation of getTermCriteria() function of ANN_MLP.

The link is: (

wrp gravatar imagewrp ( 2017-03-22 04:39:06 -0600 )edit

sorry, but i don't understand, what you mean here.

when in doubt, you look at the src , right ?

berak gravatar imageberak ( 2017-03-22 04:47:35 -0600 )edit

I get it, thank you

wrp gravatar imagewrp ( 2017-03-22 04:54:35 -0600 )edit

ah, now i think i understand you, indeed, it's not the absolute error, but the change of it.

so, ok, you're right, i'm wrong. thanks for clarification.

berak gravatar imageberak ( 2017-03-22 04:59:05 -0600 )edit

that's it.

wrp gravatar imagewrp ( 2017-03-22 05:01:25 -0600 )edit

Question Tools

1 follower


Asked: 2017-03-21 23:13:03 -0600

Seen: 269 times

Last updated: Mar 22 '17