Spaces:
Runtime error
Runtime error
Update src/model.py
Browse files- src/model.py +1 -1
src/model.py
CHANGED
@@ -7,7 +7,7 @@ import pandas as pd
|
|
7 |
import torch
|
8 |
from prophet.serialize import model_to_json, model_from_json
|
9 |
from pytorch_forecasting import Baseline, TemporalFusionTransformer, TimeSeriesDataSet
|
10 |
-
from pytorch_forecasting.models.temporal_fusion_transformer.tuning import optimize_hyperparameters
|
11 |
import pickle
|
12 |
# at beginning of the script
|
13 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
|
|
7 |
import torch
|
8 |
from prophet.serialize import model_to_json, model_from_json
|
9 |
from pytorch_forecasting import Baseline, TemporalFusionTransformer, TimeSeriesDataSet
|
10 |
+
# from pytorch_forecasting.models.temporal_fusion_transformer.tuning import optimize_hyperparameters
|
11 |
import pickle
|
12 |
# at beginning of the script
|
13 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|