mlrl.common.testbed.experiments.output.model_text.model_text module

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

Provides classes for representing rule models as text that is part of output data.

class mlrl.common.testbed.experiments.output.model_text.model_text.RuleModelAsText(model: RuleModel, dataset: TabularDataset)

Bases: TextualOutputData

A textual representation of a rule model.

CONTEXT = Context(include_dataset_type=False, include_prediction_scope=True, include_fold=True)
OPTION_DECIMALS_BODY = 'decimals_body'
OPTION_DECIMALS_HEAD = 'decimals_head'
OPTION_PRINT_BODIES = 'print_bodies'
OPTION_PRINT_FEATURE_NAMES = 'print_feature_names'
OPTION_PRINT_HEADS = 'print_heads'
OPTION_PRINT_NOMINAL_VALUES = 'print_nominal_values'
OPTION_PRINT_OUTPUT_NAMES = 'print_output_names'
PROPERTIES = Properties(name='Model', file_name='rules')
to_text(options: Options, **_) str | None

See mlrl.testbed.experiments.output.data.TextualOutputData.to_text()