Class: Google::Apis::PredictionV1_2::Training::ModelInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_2/classes.rb,
generated/google/apis/prediction_v1_2/representations.rb,
generated/google/apis/prediction_v1_2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ModelInfo

Returns a new instance of ModelInfo



198
199
200
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 198

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

Instance Attribute Details

#classification_accuracyFloat

Corresponds to the JSON property classificationAccuracy

Returns:

  • (Float)


186
187
188
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 186

def classification_accuracy
  @classification_accuracy
end

#mean_squared_errorFloat

Corresponds to the JSON property meanSquaredError

Returns:

  • (Float)


191
192
193
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 191

def mean_squared_error
  @mean_squared_error
end

#model_typeString

Corresponds to the JSON property modelType

Returns:

  • (String)


196
197
198
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 196

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



203
204
205
206
207
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 203

def update!(**args)
  @classification_accuracy = args[:classification_accuracy] if args.key?(:classification_accuracy)
  @mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
  @model_type = args[:model_type] if args.key?(:model_type)
end