Skip to content

Commit

Permalink
Merge branch 'main' into 19-interval-score
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzM00 committed Dec 28, 2024
2 parents 5f676d7 + a66ec01 commit 788a748
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/probafcst/models/catboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(
quantiles: list[int],
include_seasonal_dummies=True,
cyclical_encodings=True,
include_rolling_stats=False,
X_lag_cols: list[str] | None = None,
kwargs: dict | None = None,
):
Expand All @@ -28,6 +29,7 @@ def __init__(
model=model,
lags=lags,
quantiles=quantiles,
include_rolling_stats=include_rolling_stats,
include_seasonal_dummies=include_seasonal_dummies,
cyclical_encodings=cyclical_encodings,
X_lag_cols=X_lag_cols,
Expand Down
2 changes: 2 additions & 0 deletions src/probafcst/models/lgbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(
quantiles: list[int],
include_seasonal_dummies=True,
cyclical_encodings=True,
include_rolling_stats=False,
X_lag_cols: list[str] | None = None,
kwargs: dict | None = None,
):
Expand All @@ -38,6 +39,7 @@ def __init__(
model=model,
lags=lags,
quantiles=quantiles,
include_rolling_stats=include_rolling_stats,
include_seasonal_dummies=include_seasonal_dummies,
cyclical_encodings=cyclical_encodings,
X_lag_cols=X_lag_cols,
Expand Down
2 changes: 2 additions & 0 deletions src/probafcst/models/linear_qr.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(
quantiles: list[int],
include_seasonal_dummies=True,
cyclical_encodings=True,
include_rolling_stats=False,
X_lag_cols: list[str] | None = None,
kwargs: dict | None = None,
):
Expand All @@ -35,6 +36,7 @@ def __init__(
model=model,
lags=lags,
quantiles=quantiles,
include_rolling_stats=include_rolling_stats,
include_seasonal_dummies=include_seasonal_dummies,
cyclical_encodings=cyclical_encodings,
X_lag_cols=X_lag_cols,
Expand Down
2 changes: 1 addition & 1 deletion src/probafcst/models/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __init__(
lags: list[int],
quantiles: list[int],
include_seasonal_dummies=True,
include_rolling_stats=True,
include_rolling_stats=False,
cyclical_encodings=True,
X_lag_cols: list[str] | None = None,
):
Expand Down
2 changes: 2 additions & 0 deletions src/probafcst/models/xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(
quantiles: list[int],
include_seasonal_dummies=True,
cyclical_encodings=True,
include_rolling_stats=False,
X_lag_cols: list[str] | None = None,
kwargs: dict | None = None,
):
Expand All @@ -31,6 +32,7 @@ def __init__(
lags=lags,
quantiles=quantiles,
include_seasonal_dummies=include_seasonal_dummies,
include_rolling_stats=include_rolling_stats,
cyclical_encodings=cyclical_encodings,
X_lag_cols=X_lag_cols,
)
Expand Down
2 changes: 2 additions & 0 deletions tests/models/test_xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_xgboost_evaluate_no_X(energy_sample, include_seasonal_dummies):
quantiles=QUANTILES,
include_seasonal_dummies=include_seasonal_dummies,
cyclical_encodings=False,
include_rolling_stats=False,
kwargs={"n_jobs": 1, "n_estimators": 10},
)
# generate three splits, using 6 weeks for training
Expand Down Expand Up @@ -66,6 +67,7 @@ def test_xgboost_evaluate_with_X(energy_sample):
lags=[24, 168],
quantiles=QUANTILES,
include_seasonal_dummies=False,
include_rolling_stats=False,
cyclical_encodings=False,
kwargs={"n_jobs": 1, "n_estimators": 10},
)
Expand Down

0 comments on commit 788a748

Please sign in to comment.