Class: Google::Apis::LanguageV2::XpsTablesClassificationMetricsCurveMetrics

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsTablesClassificationMetricsCurveMetrics

Returns a new instance of XpsTablesClassificationMetricsCurveMetrics.



3580
3581
3582
# File 'lib/google/apis/language_v2/classes.rb', line 3580

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

Instance Attribute Details

#auc_prFloat

The area under the precision-recall curve. Corresponds to the JSON property aucPr

Returns:

  • (Float)


3552
3553
3554
# File 'lib/google/apis/language_v2/classes.rb', line 3552

def auc_pr
  @auc_pr
end

#auc_rocFloat

The area under receiver operating characteristic curve. Corresponds to the JSON property aucRoc

Returns:

  • (Float)


3557
3558
3559
# File 'lib/google/apis/language_v2/classes.rb', line 3557

def auc_roc
  @auc_roc
end

#confidence_metrics_entriesArray<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



3563
3564
3565
# File 'lib/google/apis/language_v2/classes.rb', line 3563

def confidence_metrics_entries
  @confidence_metrics_entries
end

#log_lossFloat

The Log loss metric. Corresponds to the JSON property logLoss

Returns:

  • (Float)


3568
3569
3570
# File 'lib/google/apis/language_v2/classes.rb', line 3568

def log_loss
  @log_loss
end

#position_thresholdFixnum

The position threshold value used to compute the metrics. Corresponds to the JSON property positionThreshold

Returns:

  • (Fixnum)


3573
3574
3575
# File 'lib/google/apis/language_v2/classes.rb', line 3573

def position_threshold
  @position_threshold
end

#valueString

The CATEGORY row value (for ARRAY unnested) the curve metrics are for. Corresponds to the JSON property value

Returns:

  • (String)


3578
3579
3580
# File 'lib/google/apis/language_v2/classes.rb', line 3578

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3585
3586
3587
3588
3589
3590
3591
3592
# File 'lib/google/apis/language_v2/classes.rb', line 3585

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