-
Notifications
You must be signed in to change notification settings - Fork 6.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
ppai/weather: add weather forecasting sample #8345
ppai/weather: add weather forecasting sample #8345
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
27f4754
to
d6be3f1
Compare
373026f
to
1135c25
Compare
908edb6
to
f55503b
Compare
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, couple small nits such as do we need to update the header years to 2023 now that it is the new year?
I am working on adding Cloud Run predictions. The code itself remains pretty much the same, but I had to refactor the directory structures due to Python packaging and how Dataflow and Vertex AI expect files. |
69c4515
to
6937f26
Compare
…ples into ppai-weather-forecasting
…ples into ppai-weather-forecasting
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
…ples into ppai-weather-forecasting
…thon-docs-samples into ppai-weather-forecasting
people-and-planet-ai/weather-forecasting/serving/weather-model/weather/trainer.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Dan Lee <[email protected]>
Co-authored-by: Dan Lee <[email protected]>
Co-authored-by: Dan Lee <[email protected]>
FYI, I just set the "do not merge" label because that build check was stuck. Now it's green. |
* ppai/weather-foreacasting: add weather sample * remove temporary test model * remove test scripts * install local packages before testing * update datasets * add local packages to test requirements * split notebook and tests * add predictions notebook and tests * add missing requirements * update notebooks * update test names * fix tests * enable vertex test * copy file to directory * update dependencies * ignore checkpoints directory * Simplify boolean test Co-authored-by: Dan Lee <[email protected]> * Improve wording Co-authored-by: Dan Lee <[email protected]> * Improve wording Co-authored-by: Dan Lee <[email protected]> * rename go to graph_objects Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Co-authored-by: Dan Lee <[email protected]>
Description
This is an end-to-end sample to train a PyTorch model in Google Cloud. It uses Dataflow to create the datasets using Earth Engine data, then trains a PyTorch model in Vertex AI with GPUs, deploys the model to Cloud Run and gets predictions.
To run while staged:
!git clone -b ppai-weather-forecasting https://github.com/davidcavazos/python-docs-samples.git %cd python-docs-samples/people-and-planet-ai/weather-forecasting
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)