Class: Google::Apis::BigqueryV2::FeatureValue
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::FeatureValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Representative value of a single feature within the cluster.
Instance Attribute Summary collapse
-
#categorical_value ⇒ Google::Apis::BigqueryV2::CategoricalValue
Representative value of a categorical feature.
-
#feature_column ⇒ String
The feature column name.
-
#numerical_value ⇒ Float
The numerical feature value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FeatureValue
constructor
A new instance of FeatureValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FeatureValue
Returns a new instance of FeatureValue.
3302 3303 3304 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3302 def initialize(**args) update!(**args) end |
Instance Attribute Details
#categorical_value ⇒ Google::Apis::BigqueryV2::CategoricalValue
Representative value of a categorical feature.
Corresponds to the JSON property categoricalValue
3290 3291 3292 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3290 def categorical_value @categorical_value end |
#feature_column ⇒ String
The feature column name.
Corresponds to the JSON property featureColumn
3295 3296 3297 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3295 def feature_column @feature_column end |
#numerical_value ⇒ Float
The numerical feature value. This is the centroid value for this feature.
Corresponds to the JSON property numericalValue
3300 3301 3302 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3300 def numerical_value @numerical_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3307 3308 3309 3310 3311 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3307 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 |