check#
- SuperLSS.check(
- X: object | EagerFrame,
- y: NDArray,
- covariate: str | NDArray,
- *,
- name: str | None = None,
- sample_weight: NDArray | None = None,
- offsets: Mapping[str, NDArray] | None = None,
- seed: int = 42,
- truncation: tuple[object, object] | None = None,
- censored: ArrayLike | None = None,
- **kwargs: Any,
Return the mean, standard deviation and skewness of the residuals per bin.
covariateis a column name ofXor an array with one value per row; the rows are binned as Fasiolo, Nedellec, Goude and Wood (2020) bin them and each moment gets a bootstrap band, so a band clear of zero (mean), of one (standard deviation) or of zero (skewness) marks the region where the fit is wrong and in which moment.sample_weightis read asresidual_set()reads it: a prior weight is inside each row’s law and the row counts at most once, a frequency weight replicates the row, and above 100,000 occurrences the bins read a subset of 100,000 drawn without replacement. Further keywords (n_bins,n_boot) reach the builder.truncationandcensoredare the bounds the model was fitted with, read as infit(); pass them for rows recorded under them.