Skip to content

Predict

machinelearning_predict R Documentation

Generates a prediction for the observation using the specified ML Model

Description

Generates a prediction for the observation using the specified ⁠ML Model⁠.

Note: Not all response parameters will be populated. Whether a response parameter is populated depends on the type of model requested.

Usage

machinelearning_predict(MLModelId, Record, PredictEndpoint)

Arguments

MLModelId

[required] A unique identifier of the MLModel.

Record

[required]

PredictEndpoint

[required]

Value

A list with the following syntax:

list(
  Prediction = list(
    predictedLabel = "string",
    predictedValue = 123.0,
    predictedScores = list(
      123.0
    ),
    details = list(
      "string"
    )
  )
)

Request syntax

svc$predict(
  MLModelId = "string",
  Record = list(
    "string"
  ),
  PredictEndpoint = "string"
)