Open ZhangYH2020 opened 11 months ago
Same problem in google colab! Did you solved @ZhangYH2020 ?
Today I had the same issue.
I have the same error. Did you fix it? @ZhangYH2020
Hi Zhang, sorry no fix yet
Same problem in google colab! Did you solved @ZhangYH2020 ? No, finally I delete this code, and change hyperparameters manually.
I have the same error. Did you fix it? @ZhangYH2020
No, finally I delete this code, and change hyperparameters manually.
For me it worked to downgrade to optuna version 3.4 and pytorch 2.0.1
pip install torch==2.0.1 pytorch-lightning==2.0.2 pytorch_forecasting==1.0.0 torchaudio==2.0.2 torchdata==0.6.1 torchtext==0.15.2 torchvision==0.15.2 optuna==3.4
It worked for me after downgrading optuna==3.4.0
and torch==2.1.0
.
import
below gave me the same error:
from pytorch_forecasting.models.temporal_fusion_transformer.tuning import (
optimize_hyperparameters,
)
packages (Python 3.10.14 (main, Mar 21 2024, 16:24:04) [GCC 11.2.0] on linux):
optuna 3.6.0
optuna-integration 3.6.0
pytorch-forecasting 1.0.0
pytorch-lightning 2.2.1
pytorch_optimizer 2.12.0
torch 2.2.1
Hello!!. I also have the same problem... it still hasn't been resolved... or what would be a way to solve it!!!
I didn't need to downgrade torch, downgrading optuna worked for me:
pip install optuna==3.4.0
my torch is at 2.3.1
I didn't need to downgrade torch, downgrading optuna worked for me:
pip install optuna==3.4.0
my torch is at 2.3.1
Thank you, that worked for me!
I want to import optimize_hyperparameters using: from pytorch_forecasting.models.temporal_fusion_transformer.tuning import optimize_hyperparameters.
But it gets an error: Cannot create a consistent method resolution order (MRO) for bases Callback, PyTorchLightningPruningCallback