pyPhenology.models.Model.predict¶
-
Model.
predict
(to_predict=None, predictors=None, **kwargs)¶ Make predictions
Predict the DOY given predictor data and associated site/year info. All model parameters must be set either in the initial model call or by running fit(). If to_predict and predictors are not set, then this will return predictions for the data used in fitting (if available)
- Parameters:
- to_predict : dataframe, optional
- pandas dataframe of site/year combinations to predict from the given predictor data. just like the observations dataframe used in fit() but (optionally) without the doy column
- predictors : dataframe, optional
- pandas dataframe in the format specific to this package
- Returns:
- predictions : array
- 1D array the same length of to_predict. Or if to_predict is not used, the same length as observations used in fitting.