cleverly.estimators.atmle_result.WorkingModelFold#

class cleverly.estimators.atmle_result.WorkingModelFold(fold: int | None, selection_rows: int, effect_columns: tuple[str, ...], bias_columns: tuple[str, ...], effect_penalty: float, bias_penalty: float, effect_risk: float, bias_risk: float)[source]#

The working models one fold selected, and the size of each.

Parameters:
foldint or None

The outer fold whose training rows selected the models, or None for form="pooled".

selection_rowsint

The rows the models were selected on.

effect_columnstuple of str

The selected effect-model columns.

bias_columnstuple of str

The selected bias-model columns.

effect_penaltyfloat

The cross-validated lasso penalty of the effect model.

bias_penaltyfloat

The cross-validated lasso penalty of the bias model.

effect_riskfloat

The smallest cross-validated risk on the effect model’s penalty grid.

bias_riskfloat

The smallest cross-validated risk on the bias model’s penalty grid.

Methods#

Attributes#

WorkingModelFold.fold: int | None#
WorkingModelFold.selection_rows: int#
WorkingModelFold.effect_columns: tuple[str, ...]#
WorkingModelFold.bias_columns: tuple[str, ...]#
WorkingModelFold.effect_penalty: float#
WorkingModelFold.bias_penalty: float#
WorkingModelFold.effect_risk: float#
WorkingModelFold.bias_risk: float#