Skip to content

Commit

Permalink
resolve torchmetrics import issue (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzn committed Jun 18, 2022
1 parent 14d671a commit c8169ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions darts/tests/models/forecasting/test_torch_forecasting_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
from unittest.mock import patch

import pandas as pd
from torchmetrics import (
MeanAbsoluteError,
MeanAbsolutePercentageError,
MetricCollection,
)

from darts import TimeSeries
from darts.logging import get_logger
Expand All @@ -19,6 +14,11 @@

try:
import torch
from torchmetrics import (
MeanAbsoluteError,
MeanAbsolutePercentageError,
MetricCollection,
)

from darts.models.forecasting.rnn_model import RNNModel

Expand Down
1 change: 0 additions & 1 deletion requirements/torch.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pytorch-lightning>=1.5.0
torch>=1.8.0
torchmetrics>=0.9.1

0 comments on commit c8169ec

Please sign in to comment.