GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: correct text sentiment analysis sample (#222) · aditdn/python-aiplatform@0befde3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .sample_configs/param_handlers
    • create_training_pipeline_text_sentiment_analysis_sample.py
  • samples/snippets
    • create_training_pipeline_text_sentiment_analysis_sample.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.sample_configs/param_handlers/create_training_pipeline_text_sentiment_analysis_sample.py‎

Copy file name to clipboardExpand all lines: .sample_configs/param_handlers/create_training_pipeline_text_sentiment_analysis_sample.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def make_parent(parent: str) -> str:
1818

1919
def make_training_pipeline(display_name: str, dataset_id: str, model_display_name: str) -> google.cloud.aiplatform_v1alpha1.types.training_pipeline.TrainingPipeline:
2020
# Use sentiment_max of 4
21-
training_task_inputs_dict = {"sentiment_max": 4}
21+
training_task_inputs_dict = {"sentiment_max": 10}
2222
training_task_inputs = to_protobuf_value(training_task_inputs_dict)
2323

2424
training_pipeline = {
Collapse file

‎samples/snippets/create_training_pipeline_text_sentiment_analysis_sample.py‎

Copy file name to clipboardExpand all lines: samples/snippets/create_training_pipeline_text_sentiment_analysis_sample.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def create_training_pipeline_text_sentiment_analysis_sample(
3232
client = aiplatform.gapic.PipelineServiceClient(client_options=client_options)
3333
# Use sentiment_max of 4
3434
training_task_inputs = trainingjob.definition.AutoMlTextSentimentInputs(
35-
sentiment_max=4,
35+
sentiment_max=10,
3636
).to_value()
3737

3838
training_pipeline = {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.