class Google::Apis::PredictionV1_6::Analyze::ModelDescription

Description of the model.

Attributes

confusion_matrix[RW]

An output confusion matrix. This shows an estimate for how this model will do in predictions. This is first indexed by the true class label. For each true class label, this provides a pair `predicted_label, count`, where count is the estimated number of times the model will predict the predicted label given the true label. Will not output if more then 100 classes (Categorical models only). Corresponds to the JSON property `confusionMatrix` @return [Hash<String,Hash<String,String>>]

confusion_matrix_row_totals[RW]

A list of the confusion matrix row totals. Corresponds to the JSON property `confusionMatrixRowTotals` @return [Hash<String,String>]

modelinfo[RW]

Basic information about the model. Corresponds to the JSON property `modelinfo` @return [Google::Apis::PredictionV1_6::Insert2]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/prediction_v1_6/classes.rb, line 339
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/prediction_v1_6/classes.rb, line 344
def update!(**args)
  @confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix)
  @confusion_matrix_row_totals = args[:confusion_matrix_row_totals] if args.key?(:confusion_matrix_row_totals)
  @modelinfo = args[:modelinfo] if args.key?(:modelinfo)
end