pysmatch.modeling
- pysmatch.modeling.fit_model(index: int, X: DataFrame, y: Series, model_type: str, balance: bool, max_iter: int = 100, random_state: int = 42, balance_strategy: Literal['over', 'under'] = 'over') Dict[str, Any][source]
Fit a single propensity-score model and evaluate it on a held-out split.
Returns a fitted pipeline and validation-set accuracy.