@@ -999,26 +999,39 @@ def _validate_data(
999999
10001000 def predict (self , data : pd .DataFrame ) -> np .ndarray :
10011001 """
1002- Predict outcomes using fitted model.
1002+ Predict outcomes using the fitted model.
1003+
1004+ Out-of-sample prediction is intentionally unsupported pending a broader
1005+ post-estimation design for estimator result objects. For fitted
1006+ training-data predictions, use ``results_.fitted_values`` after
1007+ :meth:`fit`.
10031008
10041009 Parameters
10051010 ----------
10061011 data : pd.DataFrame
1007- DataFrame with same structure as training data.
1012+ Candidate prediction data. Currently unused because out-of-sample
1013+ prediction is unsupported.
10081014
10091015 Returns
10101016 -------
10111017 np.ndarray
10121018 Predicted values.
1019+
1020+ Raises
1021+ ------
1022+ RuntimeError
1023+ If called before :meth:`fit`.
1024+ NotImplementedError
1025+ Always raised after fitting until the broader post-estimation
1026+ prediction contract is designed.
10131027 """
10141028 if not self .is_fitted_ :
10151029 raise RuntimeError ("Model must be fitted before calling predict()" )
10161030
1017- # This is a placeholder - would need to store column names
1018- # for full implementation
10191031 raise NotImplementedError (
1020- "predict() is not yet implemented. "
1021- "Use results_.fitted_values for training data predictions."
1032+ "out-of-sample predict() is unsupported pending a broader "
1033+ "post-estimation design. Use results_.fitted_values for fitted "
1034+ "training-data predictions."
10221035 )
10231036
10241037 def get_params (self ) -> Dict [str , Any ]:
0 commit comments