ncaa_eval.model.logistic_regression module¶
Minimal logistic regression model — test fixture for the Model contract.
This is NOT a production model. It exists solely to demonstrate and
test the stateless Model interface in ~30 lines of logic.
- class ncaa_eval.model.logistic_regression.LogisticRegressionConfig(*, model_name: Literal['logistic_regression'] = 'logistic_regression', calibration_method: Literal['isotonic', 'sigmoid'] | None = None, C: float = 1.0, max_iter: int = 200)[source]¶
Bases:
ModelConfigHyperparameters for the logistic regression test fixture.
- C: float¶
- max_iter: int¶
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_name: Literal['logistic_regression']¶
- class ncaa_eval.model.logistic_regression.LogisticRegressionModel(config: LogisticRegressionConfig | None = None, *, batch_rating_types: tuple[Literal['srs', 'ridge', 'colley'], ...] = ('srs',), graph_features_enabled: bool = False, ordinal_composite: Literal['simple_average', 'weighted', 'pca'] | None = None)[source]¶
Bases:
ModelThin wrapper around sklearn
LogisticRegression.- feature_names_: list[str]¶
- get_config() LogisticRegressionConfig[source]¶
Return the Pydantic-validated configuration.