mlrl.boosting.cython.post_processor module

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

class mlrl.boosting.cython.post_processor.ConstantShrinkageConfig

Bases: object

Allows to configure a post-processor that shrinks the weights of rules by a constant “shrinkage” parameter.

get_shrinkage() float

Returns the value of the “shrinkage” parameter.

Returns:

The value of the “shrinkage” parameter

set_shrinkage(shrinkage: float) ConstantShrinkageConfig

Sets the value of the “shrinkage” parameter.

Parameters:

shrinkage – The value of the “shrinkage” parameter. Must be in (0, 1)

Returns:

A ConstantShrinkageConfig that allows further configuration of the post-processor