mlrl.boosting.cython.regularization module

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

class mlrl.boosting.cython.regularization.ManualRegularizationConfig

Bases: object

Allows to configure a regularization term that affects the evaluation of rules by manually specifying the weight of the regularization term.

get_regularization_weight() float

Returns the weight of the regularization term.

Returns:

The weight of the regularization term

set_regularization_weight(regularization_weight: float) ManualRegularizationConfig

Sets the weight of the regularization term.

Parameters:

regularization_weight – The weight of the regularization term. Must be greater than 0

Returns:

A ManualRegularizationConfig that allows further configuration of the regularization term