cleverly.ImportanceFacts#

class cleverly.ImportanceFacts(candidates: tuple[str, ...], first_fit: Mapping[str, str], outcome: str, n: int, cautions: Mapping[str, tuple[str, ...]], fitted_method: str)[source]#

What a variable-importance summary reads from the candidates’ fits.

Kept on every result, so the summary does not need the fits themselves.

Parameters:
candidatestuple of str

The candidates, in the order they were fitted.

first_fitmapping of str to str

The header facts of the first candidate’s fit summary.

outcomestr

The outcome column.

nint

The number of rows.

cautionsmapping of str to tuple of str

For each candidate whose fit summary carries a warning note, in candidate order, the text of those warnings.

fitted_methodstr

The fitted method of every candidate’s fit, such as "tmle": the run fits each candidate with one estimator.

Attributes:
cautioustuple of str

The candidates whose fit summary carries a warning note, in candidate order.

Methods#

Attributes#

ImportanceFacts.cautious#

The candidates whose fit summary carries a warning note, in candidate order.

ImportanceFacts.candidates: tuple[str, ...]#
ImportanceFacts.first_fit: Mapping[str, str]#
ImportanceFacts.outcome: str#
ImportanceFacts.n: int#
ImportanceFacts.cautions: Mapping[str, tuple[str, ...]]#
ImportanceFacts.fitted_method: str#