AWSMachineLearningPrediction

Objective-C

@interface AWSMachineLearningPrediction

Swift

class AWSMachineLearningPrediction

The output from a Predict operation:

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

  • PredictedLabel - Present for either a BINARY or MULTICLASSMLModel request.

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

  • PredictedValue - Present for a REGRESSIONMLModel request.

  • Provides any additional details regarding the prediction.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, NSString *> *_Nullable details;

    Swift

    var details: [String : String]? { get set }
  • The prediction label for either a BINARY or MULTICLASSMLModel.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable predictedLabel;

    Swift

    var predictedLabel: String? { get set }
  • Provides the raw classification score corresponding to each label.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDictionary<NSString *, NSNumber *> *_Nullable predictedScores;

    Swift

    var predictedScores: [String : NSNumber]? { get set }
  • The prediction value for REGRESSIONMLModel.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable predictedValue;

    Swift

    var predictedValue: NSNumber? { get set }