Skip to content

Commit

Permalink
remove torch import (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbader authored Sep 16, 2023
1 parent 98c3ff4 commit 74bd524
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,11 @@ def test_train_n_points(self):
ensemble.fit(self.combined)

# using regression_train_n_point=-1 without pretraining
with pytest.raises(ValueError):
RegressionEnsembleModel(
self.get_global_models(), regression_train_n_points=-1
)
if TORCH_AVAILABLE:
with pytest.raises(ValueError):
RegressionEnsembleModel(
self.get_global_models(), regression_train_n_points=-1
)

# using regression_train_n_point=-1 with pretraining
forecasting_models = [
Expand Down

0 comments on commit 74bd524

Please sign in to comment.