vertex-ai-samples
vertex-ai-samples copied to clipboard
Text classification evaluation
REQUIRED: Add a summary of your PR here, typically including why the change is needed and what was changed. Include any design alternatives for discussion purposes.
This notebook demonstrates training an AutoML text classification model. Using this model to create Vertex AI BatchPrediction job and generate evaluations on its results.
REQUIRED: Fill out the below checklists or remove if irrelevant
- If you are opening a PR for
Official Notebooksunder the notebooks/official folder, follow this mandatory checklist:
- [x] Use the notebook template as a starting point.
- [x] Follow the style and grammar rules outlined in the above notebook template.
- [x] Verify the notebook runs successfully in Colab since the automated tests cannot guarantee this even when it passes.
- [x] Passes all the required automated checks. You can locally test for formatting and linting with these instructions.
- [ ] You have consulted with a tech writer to see if tech writer review is necessary. If so, the notebook has been reviewed by a tech writer, and they have approved it.
- [x] This notebook has been added to the CODEOWNERS file under the
Official Notebookssection, pointing to the author or the author's team. - [x] The Jupyter notebook cleans up any artifacts it has created (datasets, ML models, endpoints, etc) so as not to eat up unnecessary resources.
- If you are opening a PR for
Community Notebooksunder the notebooks/community folder:
- [ ] This notebook has been added to the CODEOWNERS file under the
Community Notebookssection, pointing to the author or the author's team. - [ ] Passes all the required formatting and linting checks. You can locally test with these instructions.
- If you are opening a PR for
Community Contentunder the community-content folder:
- [ ] Make sure your main
Content Directory Nameis descriptive, informative, and includes some of the key products and attributes of your content, so that it is differentiable from other content - [ ] The main content directory has been added to the CODEOWNERS file under the
Community Contentsection, pointing to the author or the author's team. - [ ] Passes all the required formatting and linting checks. You can locally test with these instructions.
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Add a title and PR description describing why this PR exists and what was changed.
Missing PR summary.
PR Summary : This notebook demonstrates training an AutoML text classification model. Using this model to create Vertex AI BatchPrediction job and generate evaluations on its results.
Please update the links at the beginning. They are pointing to the wrong file!
RuntimeError Traceback (most recent call last)
Step #5: Step #4: Cell In [40], line 8
Step #5: Step #4: 1 evaluation_job = aip.PipelineJob(
Step #5: Step #4: 2 display_name=PIPELINE_DISPLAY_NAME,
Step #5: Step #4: 3 template_path="automl_text_classification_evaluation.json",
Step #5: Step #4: 4 parameter_values=parameters,
Step #5: Step #4: 5 enable_caching=False,
Step #5: Step #4: 6 )
Step #5: Step #4: ----> 8 evaluation_job.run(service_account=SERVICE_ACCOUNT)
Step #5: Step #4:
Step #5: Step #4: File /workspace/workspace/env/lib/python3.9/site-packages/google/cloud/aiplatform/base.py:807, in optional_sync.
Latest PR updates : Made the changes suggested in review. PR fix: bad links.