Class: Google::Apis::BigqueryV2::FeatureValue

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

Overview

Representative value of a single feature within the cluster.

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

Returns a new instance of FeatureValue.



1918
1919
1920
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1918

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

Instance Attribute Details

#categorical_valueGoogle::Apis::BigqueryV2::CategoricalValue

Representative value of a categorical feature. Corresponds to the JSON property categoricalValue



1905
1906
1907
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1905

def categorical_value
  @categorical_value
end

#feature_columnString

The feature column name. Corresponds to the JSON property featureColumn

Returns:

  • (String)


1910
1911
1912
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1910

def feature_column
  @feature_column
end

#numerical_valueFloat

The numerical feature value. This is the centroid value for this feature. Corresponds to the JSON property numericalValue

Returns:

  • (Float)


1916
1917
1918
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1916

def numerical_value
  @numerical_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1923
1924
1925
1926
1927
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1923

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