-
-
Notifications
You must be signed in to change notification settings - Fork 46.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update run.py in machine_learning/forecasting #8957
Conversation
Your PR doesn't actually fix #7305 because the Pytest warnings are still present in the build logs:
However, your changes are still good, so we can merge this PR anyway after some minor tweaks |
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.
Nice fixes, just need to clean up the old code and it should be good
machine_learning/forecasting/run.py
Outdated
# data_input = [[18231, 0.0, 1], [22621, 1.0, 2], [15675, 0.0, 3], [23583, 1.0, 4]] | ||
# data_input_df = pd.DataFrame( | ||
# data_input, columns=["total_user", "total_even", "days"] | ||
# ) |
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.
# data_input = [[18231, 0.0, 1], [22621, 1.0, 2], [15675, 0.0, 3], [23583, 1.0, 4]] | |
# data_input_df = pd.DataFrame( | |
# data_input, columns=["total_user", "total_even", "days"] | |
# ) |
Let's just delete the old code rather than commenting it out
Sure, I'll update the code formatting. |
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.
LGTM
@p1utoze At first glance, it looks to me like some of the errors are caused by the small number of observations (which makes sense, the ARIMA models probably need way more observations to work well). Maybe reworking this file to use a different CSV file (one with much more data) might fix some if not all of the warnings. That's all work for a future PR, though. |
Hey! I finally fixed the warnings. The numpy Runtime warning was due to the |
Yeah, that'd be great, thanks! |
* Fixed reading CSV file, added type check for data_safety_checker function * Formatted run.py * updating DIRECTORY.md --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
…tion
Describe your change:
Fixes [#7305]
I have modified the run.py and it runs without any errors locally.
read_csv
as it caused errors in Normalization.data_safety_checker
function.Checklist: