Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Prediction = Prediction' {}
- newPrediction :: Prediction
- prediction_predictedValue :: Lens' Prediction (Maybe Double)
- prediction_predictedLabel :: Lens' Prediction (Maybe Text)
- prediction_predictedScores :: Lens' Prediction (Maybe (HashMap Text Double))
- prediction_details :: Lens' Prediction (Maybe (HashMap DetailsAttributes Text))
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 aBINARY
orMULTICLASS
MLModel
request.PredictedScores
- Contains the raw classification score corresponding to each label.PredictedValue
- Present for aREGRESSION
MLModel
request.
See: newPrediction
smart constructor.
Prediction' | |
|
Instances
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
.
prediction_predictedScores :: Lens' Prediction (Maybe (HashMap Text Double)) Source #
Undocumented member.
prediction_details :: Lens' Prediction (Maybe (HashMap DetailsAttributes Text)) Source #
Undocumented member.