Class: Aws::MachineLearning::Types::Prediction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb

Overview

The output from a Predict operation:

  • Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD

  • PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request.

  • PredictedScores - Contains the raw classification score corresponding to each label.

  • PredictedValue - Present for a REGRESSION MLModel request.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#detailsHash<String,String>

Provides any additional details regarding the prediction.

Returns:

  • (Hash<String,String>)


2723
2724
2725
2726
2727
2728
2729
2730
# File 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb', line 2723

class Prediction < Struct.new(
  :predicted_label,
  :predicted_value,
  :predicted_scores,
  :details)
  SENSITIVE = []
  include Aws::Structure
end

#predicted_labelString

The prediction label for either a BINARY or MULTICLASS MLModel.

Returns:

  • (String)


2723
2724
2725
2726
2727
2728
2729
2730
# File 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb', line 2723

class Prediction < Struct.new(
  :predicted_label,
  :predicted_value,
  :predicted_scores,
  :details)
  SENSITIVE = []
  include Aws::Structure
end

#predicted_scoresHash<String,Float>

Provides the raw classification score corresponding to each label.

Returns:

  • (Hash<String,Float>)


2723
2724
2725
2726
2727
2728
2729
2730
# File 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb', line 2723

class Prediction < Struct.new(
  :predicted_label,
  :predicted_value,
  :predicted_scores,
  :details)
  SENSITIVE = []
  include Aws::Structure
end

#predicted_valueFloat

The prediction value for REGRESSION MLModel.

Returns:

  • (Float)


2723
2724
2725
2726
2727
2728
2729
2730
# File 'gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning/types.rb', line 2723

class Prediction < Struct.new(
  :predicted_label,
  :predicted_value,
  :predicted_scores,
  :details)
  SENSITIVE = []
  include Aws::Structure
end