-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] Fix pyproject package structure and failures in tutorial notebooks #1615
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1615 +/- ##
=======================================
Coverage 90.04% 90.04%
=======================================
Files 30 30
Lines 4722 4722
=======================================
Hits 4252 4252
Misses 470 470
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@XinyuWuu, removal of chdir seems to break the imports - very strage, I would have expected them to work due to |
@fkiraly The cause seems to be that And And quite unintutive, This wouldn't fine sub packages like [tool.setuptools]
packages = ["pytorch_forecasting"] |
@@ -1917,7 +1917,7 @@ | |||
"source": [ | |||
"# calcualte metric by which to display\n", | |||
"predictions = best_tft.predict(val_dataloader, return_y=True)\n", | |||
"mean_losses = SMAPE(reduction=\"none\")(predictions.output, predictions.y).mean(1)\n", | |||
"mean_losses = SMAPE(reduction=\"none\").loss(predictions.output, predictions.y[0]).mean(1)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a workaround for the notebook, but not a fix for #1614, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a workaround.
docs/source/tutorials/ar.ipynb
Outdated
"name": "stderr", | ||
"output_type": "stream", | ||
"text": [ | ||
"/home/xinyu/DATA1_1T/anaconda3/envs/PF_310/lib/python3.10/site-packages/pytorch_forecasting/models/base_model.py:31: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove this warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
fix #1539
Removed
os.chdir("../../..")
in notebooks.This PR should be merged after #1599