forked from shogun-toolbox/shogun
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PrematureStopping] Add on_next() and on_complete() method to CMachine.
The default behaviour of these method is to set a variable called m_cancel_computation which can be used to terminate prematurely algorithms, by pressing CTRL+C. The algorithm has to be registered into the signal handler by calling connect_to_signal_handler(). Fixed also a bug inside Signal.cpp.
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters