RegressionSystematicError#

class RegressionSystematicError[source]#

Check the regression systematic error.

Parameters
n_samplesint , default: 1_000_000

number of samples to use for this check.

random_stateint, default: 42

random seed for all check internals.

__init__(n_samples: int = 1000000, random_state: int = 42, **kwargs)[source]#
__new__(*args, **kwargs)#

Methods

RegressionSystematicError.add_condition(...)

Add new condition function to the check.

RegressionSystematicError.add_condition_systematic_error_ratio_to_rmse_less_than([...])

Add condition - require the absolute mean systematic error is less than (max_ratio * RMSE).

RegressionSystematicError.clean_conditions()

Remove all conditions from this check instance.

RegressionSystematicError.conditions_decision(result)

Run conditions on given result.

RegressionSystematicError.config([...])

Return check configuration (conditions' configuration not yet supported).

RegressionSystematicError.from_config(conf)

Return check object from a CheckConfig object.

RegressionSystematicError.from_json(conf[, ...])

Deserialize check instance from JSON string.

RegressionSystematicError.metadata([...])

Return check metadata.

RegressionSystematicError.name()

Name of class in split camel case.

RegressionSystematicError.params([show_defaults])

Return parameters to show when printing the check.

RegressionSystematicError.remove_condition(index)

Remove given condition by index.

RegressionSystematicError.run(dataset[, ...])

Run check.

RegressionSystematicError.run_logic(context, ...)

Run check.

RegressionSystematicError.to_json([indent, ...])

Serialize check instance to JSON string.

Examples#