Class: Google::Apis::BigqueryV2::Cluster

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

Message containing the information about one 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) ⇒ Cluster

Returns a new instance of Cluster.



839
840
841
# File 'generated/google/apis/bigquery_v2/classes.rb', line 839

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

Instance Attribute Details

#centroid_idFixnum

Centroid id. Corresponds to the JSON property centroidId

Returns:

  • (Fixnum)


827
828
829
# File 'generated/google/apis/bigquery_v2/classes.rb', line 827

def centroid_id
  @centroid_id
end

#countFixnum

Count of training data rows that were assigned to this cluster. Corresponds to the JSON property count

Returns:

  • (Fixnum)


832
833
834
# File 'generated/google/apis/bigquery_v2/classes.rb', line 832

def count
  @count
end

#feature_valuesArray<Google::Apis::BigqueryV2::FeatureValue>

Values of highly variant features for this cluster. Corresponds to the JSON property featureValues



837
838
839
# File 'generated/google/apis/bigquery_v2/classes.rb', line 837

def feature_values
  @feature_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



844
845
846
847
848
# File 'generated/google/apis/bigquery_v2/classes.rb', line 844

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