skdownscale.pointwise_models.BcsdPrecipitation

class skdownscale.pointwise_models.BcsdPrecipitation(time_grouper=<function MONTH_GROUPER>, climate_trend_grouper=<function DAY_GROUPER>, climate_trend=<function MONTH_GROUPER>, return_anoms=True, qm_kwargs=None)[source]

Classic BCSD model for Precipitation

Parameters
time_grouperstr or pd.Grouper, optional

Pandas time frequency str or Grouper object. Specifies how to group time periods. Default is ‘M’ (e.g. Monthly).

qm_kwargsdict

Keyword arguments to pass to QuantileMapper.

Attributes
time_grouperpd.Grouper

Linear Regression object.

quantile_mappers_dict

QuantileMapper objects (one for each time group).

Methods

fit(X, y)

Fit BcsdPrecipitation model

get_params([deep])

Get parameters for this estimator.

predict(X)

Predict using the BcsdPrecipitation model

set_params(**params)

Set the parameters of this estimator.

__init__(time_grouper=<function MONTH_GROUPER>, climate_trend_grouper=<function DAY_GROUPER>, climate_trend=<function MONTH_GROUPER>, return_anoms=True, qm_kwargs=None)

Methods

__init__([time_grouper, ...])

fit(X, y)

Fit BcsdPrecipitation model

get_params([deep])

Get parameters for this estimator.

predict(X)

Predict using the BcsdPrecipitation model

set_params(**params)

Set the parameters of this estimator.