cleverly.estimators.dose_response.DoseResponseScoreReport#
- class cleverly.estimators.dose_response.DoseResponseScoreReport(names: tuple[str, ...], scores: NDArray[float64], std_errors: NDArray[float64], threshold: float, tolerance: float, backend: str | None = None)[source]#
Each pair’s fluctuation score against the package’s score threshold.
The score is the mean weighted score of the pair’s fluctuation at its solution, on the scaled outcome. The threshold is
score_threshold()at the largest finite scaled standard error of the pairs. The fit refuses a pair whose fluctuation did not solve its score to about1e-6 * sd / sqrt(n), against a threshold of about1e-3 * sd / n, so below about a million rows a stored fit passes and the report restates convergence.- Parameters:
- names
tupleofstr The pairs, in report order.
- scores
ndarray Each pair’s score on the scaled outcome.
- std_errors
ndarray Each pair’s plug-in standard error, divided by the outcome scaler’s range.
- threshold
float The magnitude a score may reach and pass.
- tolerance
float The relative tolerance of the threshold.
- backend
strorNone The dataframe library
to_frame()returns by default.
- names
Methods#
Attributes#
- DoseResponseScoreReport.passed#
Whether every pair’s score is within the threshold.
- DoseResponseScoreReport.ratios#
Each pair’s
abs(score) / threshold.
- DoseResponseScoreReport.scores: NDArray[float64]#
- DoseResponseScoreReport.std_errors: NDArray[float64]#