AttributeError: module 'torch' has no attribute 'pi' #584
-
Hello, df_nn_tail = df_nn.tail(21600) 2021-10-08 06:11:05 | 3.27645 m = NeuralProphet() INFO - (NP.df_utils._infer_frequency) - Major frequency T corresponds to 94.769% of the data. AttributeError Traceback (most recent call last) ~\AppData\Local\Programs\Python\Python39\lib\site-packages\neuralprophet\forecaster.py in fit(self, df, freq, validation_df, progress, minimal) ~\AppData\Local\Programs\Python\Python39\lib\site-packages\neuralprophet\forecaster.py in _train(self, df_dict, df_val_dict, progress) ~\AppData\Local\Programs\Python\Python39\lib\site-packages\neuralprophet\forecaster.py in _train_epoch(self, e, loader) ~\AppData\Local\Programs\Python\Python39\lib\site-packages\neuralprophet\forecaster.py in _get_time_based_sample_weight(self, t) AttributeError: module 'torch' has no attribute 'pi' |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi. I too had this issue. We can get around it by using: import torch torch.pi = math.pi ` Not ideal, but will get you by for now until the problem is resolved. |
Beta Was this translation helpful? Give feedback.
-
The issue has been addressed in 0.3.2 |
Beta Was this translation helpful? Give feedback.
The issue has been addressed in 0.3.2