Class: Google::Apis::LanguageV2::XpsTablesClassificationMetricsCurveMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsTablesClassificationMetricsCurveMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
Metrics curve data point for a single value.
Instance Attribute Summary collapse
-
#auc_pr ⇒ Float
The area under the precision-recall curve.
-
#auc_roc ⇒ Float
The area under receiver operating characteristic curve.
-
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV2::XpsTablesConfidenceMetricsEntry>
Metrics that have confidence thresholds.
-
#log_loss ⇒ Float
The Log loss metric.
-
#position_threshold ⇒ Fixnum
The position threshold value used to compute the metrics.
-
#value ⇒ String
The CATEGORY row value (for ARRAY unnested) the curve metrics are for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsTablesClassificationMetricsCurveMetrics
constructor
A new instance of XpsTablesClassificationMetricsCurveMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsTablesClassificationMetricsCurveMetrics
Returns a new instance of XpsTablesClassificationMetricsCurveMetrics.
3594 3595 3596 |
# File 'lib/google/apis/language_v2/classes.rb', line 3594 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auc_pr ⇒ Float
The area under the precision-recall curve.
Corresponds to the JSON property aucPr
3566 3567 3568 |
# File 'lib/google/apis/language_v2/classes.rb', line 3566 def auc_pr @auc_pr end |
#auc_roc ⇒ Float
The area under receiver operating characteristic curve.
Corresponds to the JSON property aucRoc
3571 3572 3573 |
# File 'lib/google/apis/language_v2/classes.rb', line 3571 def auc_roc @auc_roc end |
#confidence_metrics_entries ⇒ Array<Google::Apis::LanguageV2::XpsTablesConfidenceMetricsEntry>
Metrics that have confidence thresholds. Precision-recall curve and ROC curve
can be derived from them.
Corresponds to the JSON property confidenceMetricsEntries
3577 3578 3579 |
# File 'lib/google/apis/language_v2/classes.rb', line 3577 def confidence_metrics_entries @confidence_metrics_entries end |
#log_loss ⇒ Float
The Log loss metric.
Corresponds to the JSON property logLoss
3582 3583 3584 |
# File 'lib/google/apis/language_v2/classes.rb', line 3582 def log_loss @log_loss end |
#position_threshold ⇒ Fixnum
The position threshold value used to compute the metrics.
Corresponds to the JSON property positionThreshold
3587 3588 3589 |
# File 'lib/google/apis/language_v2/classes.rb', line 3587 def position_threshold @position_threshold end |
#value ⇒ String
The CATEGORY row value (for ARRAY unnested) the curve metrics are for.
Corresponds to the JSON property value
3592 3593 3594 |
# File 'lib/google/apis/language_v2/classes.rb', line 3592 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3599 3600 3601 3602 3603 3604 3605 3606 |
# File 'lib/google/apis/language_v2/classes.rb', line 3599 def update!(**args) @auc_pr = args[:auc_pr] if args.key?(:auc_pr) @auc_roc = args[:auc_roc] if args.key?(:auc_roc) @confidence_metrics_entries = args[:confidence_metrics_entries] if args.key?(:confidence_metrics_entries) @log_loss = args[:log_loss] if args.key?(:log_loss) @position_threshold = args[:position_threshold] if args.key?(:position_threshold) @value = args[:value] if args.key?(:value) end |