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.



34258
34259
34260
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34258

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)


34256
34257
34258
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34256

def sentiment_max
  @sentiment_max
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34263
34264
34265
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 34263

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