EdwardRaff / JSAT

Java Statistical Analysis Tool, a Java library for Machine Learning
GNU General Public License v3.0
788 stars 204 forks source link

fr: make long running loops cancelable #66

Open salamanders opened 7 years ago

salamanders commented 7 years ago

When I call evaluateCrossValidation, I may want to give up after a certain amount of time. Instead of building in some "isRunning" boolean, would it be easier to check in the loops for https://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html if (Thread.interrupted()) { in key areas?

EdwardRaff commented 6 years ago

Are you asking how this could be done, or to have it integrated into the current code?

I'm about to start a Java-8 transition, so if you want that added its going to be a bit.

salamanders commented 6 years ago

It is a low priority feature request.