Class: Google::Apis::PredictionV1_5::Analyze::DataDescription

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

Overview

Description of the data the model was trained on.

Defined Under Namespace

Classes: Feature, OutputFeature

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) ⇒ DataDescription

Returns a new instance of DataDescription



87
88
89
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 87

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

Instance Attribute Details

#featuresArray<Google::Apis::PredictionV1_5::Analyze::DataDescription::Feature>

Description of the input features in the data set. Corresponds to the JSON property features



80
81
82
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 80

def features
  @features
end

#output_featureGoogle::Apis::PredictionV1_5::Analyze::DataDescription::OutputFeature

Description of the output value or label. Corresponds to the JSON property outputFeature



85
86
87
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 85

def output_feature
  @output_feature
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



92
93
94
95
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 92

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