mlrl.seco.cython.stopping_criterion module

@author: Michael Rapp (michael.rapp.ml@gmail.com)

class mlrl.seco.cython.stopping_criterion.CoverageStoppingCriterionConfig

Bases: object

Allows to configure a stopping criterion that stops the induction of rules as soon as the sum of the weights of the uncovered labels is smaller or equal to a certain threshold.

get_threshold() float

Returns the threshold that is used by the stopping criterion.

Returns:

The threshold that is used by the stopping criterion

set_threshold(threshold: float) CoverageStoppingCriterionConfig

Sets the threshold that should be used by the stopping criterion.

Parameters:

max_rules – The threshold that should be used by the stopping criterion. Must be at least 0

Returns:

A CoverageStoppingCriterionConfig that allows further configuration of the stopping criterion