Ask Your Question
0

How to stop train() of RTrees?

asked 2019-11-20 08:20:49 -0600

frogeye gravatar image

Hi,

I using RTrees in one of my projects.

Is there any way to stop (or interrupt) train() after it starts without crashing the application?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

why do you want / need to do this ?

berak gravatar imageberak ( 2019-11-23 05:07:02 -0600 )edit

Thanks for the question. My application can be used to train the model. So user can start the training and if it's taking too long I want to allow the user to stop the training by some user event.

Which according to me can be done if we have some function like stop() or if I can get a handle on the thread on which training happens so that I can stop it.

Till now I have not been able to find anything like that in the library.

frogeye gravatar imagefrogeye ( 2019-11-23 07:41:11 -0600 )edit

i'm afraid, all you have is the TermCriteria (and ctrl^c)

berak gravatar imageberak ( 2019-11-23 07:44:59 -0600 )edit

with an ANN, you could train / update it in small batches, and stop if a button was pressed. unfortunately not so with RTrees ;(

berak gravatar imageberak ( 2019-11-23 08:59:55 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-11-23 08:29:20 -0600

frogeye gravatar image

Thanks for replying.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-20 08:20:49 -0600

Seen: 113 times

Last updated: Nov 20 '19