Class: Google::Apis::LanguageV2::XpsImageSegmentationEvaluationMetricsConfidenceMetricsEntry

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 for a single confidence threshold.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsImageSegmentationEvaluationMetricsConfidenceMetricsEntry

Returns a new instance of XpsImageSegmentationEvaluationMetricsConfidenceMetricsEntry.



2640
2641
2642
# File 'lib/google/apis/language_v2/classes.rb', line 2640

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

Instance Attribute Details

#confidence_thresholdFloat

The confidence threshold value used to compute the metrics. Corresponds to the JSON property confidenceThreshold

Returns:

  • (Float)


2613
2614
2615
# File 'lib/google/apis/language_v2/classes.rb', line 2613

def confidence_threshold
  @confidence_threshold
end

#confusion_matrixGoogle::Apis::LanguageV2::XpsConfusionMatrix

Confusion matrix of the model running the classification. Corresponds to the JSON property confusionMatrix



2618
2619
2620
# File 'lib/google/apis/language_v2/classes.rb', line 2618

def confusion_matrix
  @confusion_matrix
end

#dice_score_coefficientFloat

DSC or the F1 score: The harmonic mean of recall and precision. Corresponds to the JSON property diceScoreCoefficient

Returns:

  • (Float)


2623
2624
2625
# File 'lib/google/apis/language_v2/classes.rb', line 2623

def dice_score_coefficient
  @dice_score_coefficient
end

#iou_scoreFloat

IOU score. Corresponds to the JSON property iouScore

Returns:

  • (Float)


2628
2629
2630
# File 'lib/google/apis/language_v2/classes.rb', line 2628

def iou_score
  @iou_score
end

#precisionFloat

Precision for the given confidence threshold. Corresponds to the JSON property precision

Returns:

  • (Float)


2633
2634
2635
# File 'lib/google/apis/language_v2/classes.rb', line 2633

def precision
  @precision
end

#recallFloat

Recall for the given confidence threshold. Corresponds to the JSON property recall

Returns:

  • (Float)


2638
2639
2640
# File 'lib/google/apis/language_v2/classes.rb', line 2638

def recall
  @recall
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2645
2646
2647
2648
2649
2650
2651
2652
# File 'lib/google/apis/language_v2/classes.rb', line 2645

def update!(**args)
  @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
  @confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
  @dice_score_coefficient = args[:dice_score_coefficient] if args.key?(:dice_score_coefficient)
  @iou_score = args[:iou_score] if args.key?(:iou_score)
  @precision = args[:precision] if args.key?(:precision)
  @recall = args[:recall] if args.key?(:recall)
end