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:
- candidates
tupleofstr The candidates, in the order they were fitted.
- first_fit
mappingofstrtostr The header facts of the first candidate’s fit summary.
- outcome
str The outcome column.
- n
int The number of rows.
- cautions
mappingofstrtotupleofstr For each candidate whose fit summary carries a warning note, in candidate order, the text of those warnings.
- fitted_method
str The fitted method of every candidate’s fit, such as
"tmle": the run fits each candidate with one estimator.
- candidates
- Attributes:
Methods#
Attributes#
- ImportanceFacts.cautious#
The candidates whose fit summary carries a warning note, in candidate order.