Class: Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature

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

Overview

Description of the output value or label.

Defined Under Namespace

Classes: Numeric, Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OutputFeature

Returns a new instance of OutputFeature



248
249
250
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 248

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

Instance Attribute Details

#numericGoogle::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Numeric

Description of the output values in the data set. Corresponds to the JSON property numeric



241
242
243
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 241

def numeric
  @numeric
end

#textArray<Google::Apis::PredictionV1_6::Analyze::DataDescription::OutputFeature::Text>

Description of the output labels in the data set. Corresponds to the JSON property text



246
247
248
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 246

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



253
254
255
256
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 253

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