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.


1085
1086
1087
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1085

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

Instance Attribute Details

#centroid_idFixnum

Centroid id. Corresponds to the JSON property centroidId

Returns:

  • (Fixnum)

1073
1074
1075
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1073

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)

1078
1079
1080
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1078

def count
  @count
end

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

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


1083
1084
1085
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1083

def feature_values
  @feature_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1090
1091
1092
1093
1094
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1090

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