Class: Google::Apis::BigqueryV2::ClusterInfo
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::ClusterInfo
- 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
Information about a single cluster for clustering model.
Instance Attribute Summary collapse
-
#centroid_id ⇒ Fixnum
Centroid id.
-
#cluster_radius ⇒ Float
Cluster radius, the average distance from centroid to each point assigned to the cluster.
-
#cluster_size ⇒ Fixnum
Cluster size, the total number of points assigned to the cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterInfo
constructor
A new instance of ClusterInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ClusterInfo
Returns a new instance of ClusterInfo
719 720 721 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 719 def initialize(**args) update!(**args) end |
Instance Attribute Details
#centroid_id ⇒ Fixnum
Centroid id.
Corresponds to the JSON property centroidId
706 707 708 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 706 def centroid_id @centroid_id end |
#cluster_radius ⇒ Float
Cluster radius, the average distance from centroid
to each point assigned to the cluster.
Corresponds to the JSON property clusterRadius
712 713 714 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 712 def cluster_radius @cluster_radius end |
#cluster_size ⇒ Fixnum
Cluster size, the total number of points assigned to the cluster.
Corresponds to the JSON property clusterSize
717 718 719 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 717 def cluster_size @cluster_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
724 725 726 727 728 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 724 def update!(**args) @centroid_id = args[:centroid_id] if args.key?(:centroid_id) @cluster_radius = args[:cluster_radius] if args.key?(:cluster_radius) @cluster_size = args[:cluster_size] if args.key?(:cluster_size) end |