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:
operationstr

The operation that produced the reports.

reportsmapping of str to Any

Each candidate’s report.

backendstr or None

The dataframe library to_frame() returns.

Methods#

CandidateReports.to_frame() → Any[source]#

Every candidate’s table, stacked under a leading candidate column.

Returns:
dataframe

Each candidate’s rows in candidate order. A column one candidate’s table lacks reads missing on its rows.

Raises:
CapabilityError

If some candidate’s report has no table, such as the number tipping_gamma returns; read it from the mapping instead.

Attributes#

CandidateReports.backend: str | None = None#
CandidateReports.operation: str#
CandidateReports.reports: Mapping[str, Any]#