Skip to content

Commit

Permalink
Fix/failing unit tests (#2420)
Browse files Browse the repository at this point in the history
* fix backtest unit tests

* fix custom regression model
  • Loading branch information
dennisbader authored Jun 19, 2024
1 parent ad150e9 commit f7d38c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions darts/tests/models/forecasting/test_backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
ARIMA,
FFT,
ExponentialSmoothing,
LinearRegressionModel,
NaiveDrift,
NaiveSeasonal,
RandomForest,
Theta,
)
from darts.tests.conftest import TORCH_AVAILABLE, tfm_kwargs
Expand All @@ -29,12 +31,7 @@


if TORCH_AVAILABLE:
from darts.models import (
BlockRNNModel,
LinearRegressionModel,
RandomForest,
TCNModel,
)
from darts.models import BlockRNNModel, TCNModel


def get_dummy_series(
Expand Down
2 changes: 1 addition & 1 deletion examples/20-RegressionModel-examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@
" self.weights = weights\n",
" self.norm_coef = sum(weights)\n",
"\n",
" def fit(self, X: np.ndarray, y: np.ndarray):\n",
" def fit(self, X: np.ndarray, y: np.ndarray, *args, **kwargs):\n",
" return self\n",
"\n",
" def predict(self, X: np.ndarray):\n",
Expand Down

0 comments on commit f7d38c3

Please sign in to comment.