windkit.ltc.mcp.MCPRegressor
- class windkit.ltc.mcp.MCPRegressor(ws_cutoff=0.0, model_kws={}, **kwargs)[source]
Sectorwise Regressor base-class used as a blueprint for sectorwise MCP methods based on regression models.
- model
- Type:
what model to use in each sector
Methods
__init__
([ws_cutoff, model_kws])fit
(ds_ref, ds_tgt, **kwargs)Fit the reference data to the target data by looping through the sectors and fitting the model to the data for that sector.
predict
(ds_ref, **kwargs)Predict the wind speed and direction from the reference data by looping through the sectors and predicting with the model for that sector.
wd_to_sector
(wd[, recalc_sectors])Convert wind direction to sectors using the object n_sectors and constant_sector_width values
Attributes