It is often possible that the algorithm will not be able to decide whether a feature is confirmed or rejected within the given amount of iterations - in that case, one can consider all of the iterations which do not change the final decisions as wasted. A solution to that problem is to introduce early stopping.
If the user sets early_stopping=True, then if the dec_reg array does not change for n_iter_no_change iterations (default 20), the loop will break. Whenever dec_reg changes, the counter for early stopping will be reset.
This feature will help in cases where time performance is a concern. The default behavior is unchanged.
It is often possible that the algorithm will not be able to decide whether a feature is confirmed or rejected within the given amount of iterations - in that case, one can consider all of the iterations which do not change the final decisions as wasted. A solution to that problem is to introduce early stopping.
If the user sets
early_stopping=True
, then if thedec_reg
array does not change forn_iter_no_change
iterations (default 20), the loop will break. Wheneverdec_reg
changes, the counter for early stopping will be reset.This feature will help in cases where time performance is a concern. The default behavior is unchanged.