Class: Google::Apis::BigqueryV2::ClusteringMetrics
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::ClusteringMetrics
- 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
-
#clusters ⇒ Array<Google::Apis::BigqueryV2::Cluster>
[Beta] Information for all clusters.
-
#davies_bouldin_index ⇒ Float
Davies-Bouldin index.
-
#mean_squared_distance ⇒ Float
Mean of squared distances between each sample to its cluster centroid.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusteringMetrics
constructor
A new instance of ClusteringMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ClusteringMetrics
Returns a new instance of ClusteringMetrics.
924 925 926 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 924 def initialize(**args) update!(**args) end |
Instance Attribute Details
#clusters ⇒ Array<Google::Apis::BigqueryV2::Cluster>
[Beta] Information for all clusters.
Corresponds to the JSON property clusters
912 913 914 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 912 def clusters @clusters end |
#davies_bouldin_index ⇒ Float
Davies-Bouldin index.
Corresponds to the JSON property daviesBouldinIndex
917 918 919 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 917 def davies_bouldin_index @davies_bouldin_index end |
#mean_squared_distance ⇒ Float
Mean of squared distances between each sample to its cluster centroid.
Corresponds to the JSON property meanSquaredDistance
922 923 924 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 922 def mean_squared_distance @mean_squared_distance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
929 930 931 932 933 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 929 def update!(**args) @clusters = args[:clusters] if args.key?(:clusters) @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 |