Skip to main content
Provide a column to pass through to the underlying models as sample weights

Data setup

unique_iddsyweight
0id_02000-01-010.3575950.636962
1id_02000-01-021.3013820.269787

Creating forecast object

Forecasting

You can provide the weight_col argument to MLForecast.fit to indicate which column should be used as the sample weights.
unique_iddslrlgbm
0id_02000-08-103.3360195.283677
1id_12000-04-073.3007864.230655

Cross validation

You can provide the weight_col argument to MLForecast.cross_validation to indicate which column should be used as the sample weights.
unique_iddscutoffylrlgbm
0id_02000-08-082000-08-073.4363252.7707173.242790
1id_12000-04-052000-04-042.4302762.6879322.075247
2id_02000-08-092000-08-084.1367713.0951404.239010
3id_12000-04-062000-04-053.3635223.0166613.436962