AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Prediction

import "github.com/aws/aws-sdk-go/service/machinelearning"

type Prediction struct { Details map[string]*string `locationName:"details" type:"map"` PredictedLabel *string `locationName:"predictedLabel" min:"1" type:"string"` PredictedScores map[string]*float64 `locationName:"predictedScores" type:"map"` PredictedValue *float64 `locationName:"predictedValue" type:"float"` }

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.

Details

Type: map[string]*string

Provides any additional details regarding the prediction.

PredictedLabel

Type: *string

The prediction label for either a BINARY or MULTICLASSMLModel.

PredictedScores

Type: map[string]*float64

Provides the raw classification score corresponding to each label.

PredictedValue

Type: *float64

The prediction value for REGRESSIONMLModel

Method

GoString

func (s Prediction) GoString() string

GoString returns the string representation

SetDetails

func (s *Prediction) SetDetails(v map[string]*string) *Prediction

SetDetails sets the Details field's value.

SetPredictedLabel

func (s *Prediction) SetPredictedLabel(v string) *Prediction

SetPredictedLabel sets the PredictedLabel field's value.

SetPredictedScores

func (s *Prediction) SetPredictedScores(v map[string]*float64) *Prediction

SetPredictedScores sets the PredictedScores field's value.

SetPredictedValue

func (s *Prediction) SetPredictedValue(v float64) *Prediction

SetPredictedValue sets the PredictedValue field's value.

String

func (s Prediction) String() string

String returns the string representation

On this page: