libZSservicesZSamazonka-mlZSamazonka-ml
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Read Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Show 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 #

NFData Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

Methods

rnf :: Prediction -> () #

Hashable Prediction Source # 
Instance details

Defined in Amazonka.MachineLearning.Types.Prediction

FromJSON 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" "libZSservicesZSamazonka-mlZSamazonka-ml" 'False) (C1 ('MetaCons "Prediction'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "predictedValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: 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 "details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap DetailsAttributes Text))))))

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:predictedValue:Prediction', prediction_predictedValue - The prediction value for REGRESSION MLModel.

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

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

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

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

The prediction value for REGRESSION MLModel.

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

The prediction label for either a BINARY or MULTICLASS MLModel.