Class: Google::Apis::BigqueryV2::ClusteringMetrics

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

Evaluation metrics for clustering models.

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) ⇒ ClusteringMetrics

Returns a new instance of ClusteringMetrics



688
689
690
# File 'generated/google/apis/bigquery_v2/classes.rb', line 688

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

Instance Attribute Details

#davies_bouldin_indexFloat

Davies-Bouldin index. Corresponds to the JSON property daviesBouldinIndex

Returns:

  • (Float)


681
682
683
# File 'generated/google/apis/bigquery_v2/classes.rb', line 681

def davies_bouldin_index
  @davies_bouldin_index
end

#mean_squared_distanceFloat

Mean of squared distances between each sample to its cluster centroid. Corresponds to the JSON property meanSquaredDistance

Returns:

  • (Float)


686
687
688
# File 'generated/google/apis/bigquery_v2/classes.rb', line 686

def mean_squared_distance
  @mean_squared_distance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



693
694
695
696
# File 'generated/google/apis/bigquery_v2/classes.rb', line 693

def update!(**args)
  @davies_bouldin_index = args[:davies_bouldin_index] if args.key?(:davies_bouldin_index)
  @mean_squared_distance = args[:mean_squared_distance] if args.key?(:mean_squared_distance)
end