Class: Google::Apis::BigqueryV2::ClusterInfo

Inherits:
Object
  • Object
show all
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

Information about a single cluster for clustering model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterInfo

Returns a new instance of ClusterInfo.



1292
1293
1294
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1292

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

Instance Attribute Details

#centroid_idFixnum

Centroid id. Corresponds to the JSON property centroidId

Returns:

  • (Fixnum)


1279
1280
1281
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1279

def centroid_id
  @centroid_id
end

#cluster_radiusFloat

Cluster radius, the average distance from centroid to each point assigned to the cluster. Corresponds to the JSON property clusterRadius

Returns:

  • (Float)


1285
1286
1287
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1285

def cluster_radius
  @cluster_radius
end

#cluster_sizeFixnum

Cluster size, the total number of points assigned to the cluster. Corresponds to the JSON property clusterSize

Returns:

  • (Fixnum)


1290
1291
1292
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1290

def cluster_size
  @cluster_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1297
1298
1299
1300
1301
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1297

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