Class: Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical

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 categorical values of this feature.

Defined Under Namespace

Classes: Value

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

Returns a new instance of Categorical



147
148
149
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 147

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

Instance Attribute Details

#countFixnum

Number of categorical values for this feature in the data. Corresponds to the JSON property count

Returns:

  • (Fixnum)


140
141
142
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 140

def count
  @count
end

#valuesArray<Google::Apis::PredictionV1_6::Analyze::DataDescription::Feature::Categorical::Value>

List of all the categories for this feature in the data set. Corresponds to the JSON property values



145
146
147
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 145

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



152
153
154
155
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 152

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