Skip to content

Commit 0befde3

Browse files
authored
fix: correct text sentiment analysis sample (#222)
1 parent cdeb0ec commit 0befde3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.sample_configs/param_handlers/create_training_pipeline_text_sentiment_analysis_sample.py

Lines 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 = {

samples/snippets/create_training_pipeline_text_sentiment_analysis_sample.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy