NoPredictedMeanError#
- exception superglm.NoPredictedMeanError(
- message: str,
- *,
- positions: NDArray[int64],
- n_rows: int,
- link: str,
- what: str = '',
- advice: str = '',
- value: str = 'mean',
Bases:
ValueErrorA score was asked of weighted rows that have no predicted mean.
predictgives such a row NaN: under the inverse, inverse-squared or a negative-power link, a row whose linear predictor is at or below zero, or overflows.metrics, the cross-validation scores, the statistical tests and the other readers that score rows raise thisValueErrorinstead of reading the row. Give those rows weight zero, leave them out, or refit with a log link (logit for a binomial).positionsare those rows’ positions amongn_rows(the message names the first ten),linknames the link that has no mean for them,whatthe score refused andvaluewhat the rows lack:"mean", or a SuperLSS parameter’s value ("value of 'mean'"). The details survive a pickle round trip, as when the error crosses a process boundary from a fold.