Skip to content

Commit

Permalink
fix: correct text sentiment analysis sample (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
dizcology committed Feb 12, 2021
1 parent cdeb0ec commit 0befde3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -18,7 +18,7 @@ def make_parent(parent: str) -> str:

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

training_pipeline = {
Expand Down
Expand Up @@ -32,7 +32,7 @@ def create_training_pipeline_text_sentiment_analysis_sample(
client = aiplatform.gapic.PipelineServiceClient(client_options=client_options)
# Use sentiment_max of 4
training_task_inputs = trainingjob.definition.AutoMlTextSentimentInputs(
sentiment_max=4,
sentiment_max=10,
).to_value()

training_pipeline = {
Expand Down

0 comments on commit 0befde3

Please sign in to comment.