Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaTrainingjobDefinitionAutoMlTextSentimentInputs

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaTrainingjobDefinitionAutoMlTextSentimentInputs

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaTrainingjobDefinitionAutoMlTextSentimentInputs.



29401
29402
29403
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 29401

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#sentiment_maxFixnum

A sentiment is expressed as an integer ordinal, where higher value means a more positive sentiment. The range of sentiments that will be used is between 0 and sentimentMax (inclusive on both ends), and all the values in the range must be represented in the dataset before a model can be created. Only the Annotations with this sentimentMax will be used for training. sentimentMax value must be between 1 and 10 (inclusive). Corresponds to the JSON property sentimentMax

Returns:

  • (Fixnum)


29399
29400
29401
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 29399

def sentiment_max
  @sentiment_max
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29406
29407
29408
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 29406

def update!(**args)
  @sentiment_max = args[:sentiment_max] if args.key?(:sentiment_max)
end