Class: Google::Apis::PredictionV1_2::Training::ModelInfo
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_2::Training::ModelInfo
- 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
-
#classification_accuracy ⇒ Float
Corresponds to the JSON property
classificationAccuracy
. -
#mean_squared_error ⇒ Float
Corresponds to the JSON property
meanSquaredError
. -
#model_type ⇒ String
Corresponds to the JSON property
modelType
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModelInfo
constructor
A new instance of ModelInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_accuracy ⇒ Float
Corresponds to the JSON property classificationAccuracy
186 187 188 |
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 186 def classification_accuracy @classification_accuracy end |
#mean_squared_error ⇒ Float
Corresponds to the JSON property meanSquaredError
191 192 193 |
# File 'generated/google/apis/prediction_v1_2/classes.rb', line 191 def mean_squared_error @mean_squared_error end |
#model_type ⇒ String
Corresponds to the JSON property modelType
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 |