amazonka-ml-2.0: Amazon Machine Learning SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MachineLearning.Types.Prediction

Description

 
Synopsis

Documentation

data Prediction Source #

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.

See: newPrediction smart constructor.

Constructors

Prediction' 

Fields

Instances

Instances details
FromJSON Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Generic Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Associated Types

type Rep Prediction :: Type -> Type #

Read Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Show Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

NFData Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Methods

rnf :: Prediction -> () #

Eq Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Hashable Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

type Rep Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

type Rep Prediction = D1 ('MetaData "Prediction" "Amazonka.MachineLearning.Types.Prediction" "amazonka-ml-2.0-A3JLJ63WvmfHxGBBIqhdRA" 'False) (C1 ('MetaCons "Prediction'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap DetailsAttributes Text))) :*: S1 ('MetaSel ('Just "predictedLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "predictedScores") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Double))) :*: S1 ('MetaSel ('Just "predictedValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))

newPrediction :: Prediction Source #

Create a value of Prediction with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:details:Prediction', prediction_details - Undocumented member.

$sel:predictedLabel:Prediction', prediction_predictedLabel - The prediction label for either a BINARY or MULTICLASS MLModel.

$sel:predictedScores:Prediction', prediction_predictedScores - Undocumented member.

$sel:predictedValue:Prediction', prediction_predictedValue - The prediction value for REGRESSION MLModel.

prediction_predictedLabel :: Lens' Prediction (Maybe Text) Source #

The prediction label for either a BINARY or MULTICLASS MLModel.

prediction_predictedValue :: Lens' Prediction (Maybe Double) Source #

The prediction value for REGRESSION MLModel.