cleverly.assessment.CandidateReports#
- class cleverly.assessment.CandidateReports(operation: str, reports: Mapping[str, Any], backend: str | None = None)[source]#
One operation’s report for each candidate of a variable-importance run.
A read-only mapping from candidate to that candidate’s own report, in candidate order. Each report is what
result.fits[candidate]returns for the same call, with that fit’s own estimate and unadjusted interval, not the Benjamini-Hochberg adjusted test.- Parameters:
- operation
str The operation that produced the reports.
- reports
mappingofstrtoAny Each candidate’s report.
- backend
strorNone The dataframe library
to_frame()returns.
- operation
Methods#
- CandidateReports.to_frame() Any[source]#
Every candidate’s table, stacked under a leading
candidatecolumn.- Returns:
dataframeEach candidate’s rows in candidate order. A column one candidate’s table lacks reads missing on its rows.
- Raises:
CapabilityErrorIf some candidate’s report has no table, such as the number
tipping_gammareturns; read it from the mapping instead.