First time here? Check out the FAQ!

Ask Your Question
0

How to stop train() of RTrees?

asked Nov 20 '19

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.

Preview: (hide)

Comments

why do you want / need to do this ?

berak gravatar imageberak (Nov 23 '19)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 (Nov 23 '19)edit

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

berak gravatar imageberak (Nov 23 '19)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 (Nov 23 '19)edit

1 answer

Sort by » oldest newest most voted
0

answered Nov 23 '19

frogeye gravatar image

Thanks for replying.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Nov 20 '19

Seen: 114 times

Last updated: Nov 20 '19