pyPhenology.models.Linear¶
-
class
pyPhenology.models.Linear(parameters={})[source]¶ A linear regression where DOY ~ mean_spring_tempearture
- intercept : int | float
- y intercept of the model
- slope : int | float
- Slope of the model
- spring_start : int
- The start day of spring, defaults to Jan 1 (DOY 0)
- spring_end : int
- The last day of spring, defaults to March 30 (DOY 90)
Methods
__init__([parameters])fit(observations, temperature[, method, …])Estimate the parameters of a model. get_doy_fitting_estimates(**params)get_error(**kargs)get_initial_bounds()get_params()predict([to_predict, temperature, doy_series])Predict the DOY given temperature data and associated site/year info All model parameters must be set either in the initial model call or by running fit(). save_params(filename)Save the parameters for a model score([metric])