Predictor#

class superglm.Predictor(name: str, features: ~collections.abc.Mapping[str, ~superglm.types.FeatureSpec], link: str | ~superglm.links.Link | None = None, intercept: bool = True, interactions: tuple[tuple[str, str], ...] = (), interaction_specs: ~collections.abc.Mapping[str, ~typing.Any] = <factory>, interaction_order: tuple[str, ...] = ())#

Bases: object

Immutable configuration for one natural-parameter predictor.

Feature specifications remain caller-owned configuration objects here. compile_predictor_design deep-clones their complete graph before any build-time mutation occurs.