import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PredictInput, PredictOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PredictCommand}. */ export interface PredictCommandInput extends PredictInput { } /** * @public * * The output of {@link PredictCommand}. */ export interface PredictCommandOutput extends PredictOutput, __MetadataBearer { } declare const PredictCommand_base: { new (input: PredictCommandInput): import("@smithy/core/client").CommandImpl; new (input: PredictCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MachineLearningClient, PredictCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import * // const { MachineLearningClient, PredictCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import * // import type { MachineLearningClientConfig } from "@aws-sdk/client-machine-learning"; * const config = {}; // type is MachineLearningClientConfig * const client = new MachineLearningClient(config); * const input = { // PredictInput * MLModelId: "STRING_VALUE", // required * Record: { // Record // required * "": "STRING_VALUE", * }, * PredictEndpoint: "STRING_VALUE", // required * }; * const command = new PredictCommand(input); * const response = await client.send(command); * // { // PredictOutput * // Prediction: { // Prediction * // predictedLabel: "STRING_VALUE", * // predictedValue: Number("float"), * // predictedScores: { // ScoreValuePerLabelMap * // "": Number("float"), * // }, * // details: { // DetailsMap * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param PredictCommandInput - {@link PredictCommandInput} * @returns {@link PredictCommandOutput} * @see {@link PredictCommandInput} for command's `input` shape. * @see {@link PredictCommandOutput} for command's `response` shape. * @see {@link MachineLearningClientResolvedConfig | config} for MachineLearningClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An error on the server occurred when trying to process a request.

* * @throws {@link InvalidInputException} (client fault) *

An error on the client occurred. Typically, the cause is an invalid input value.

* * @throws {@link LimitExceededException} (client fault) *

The subscriber exceeded the maximum number of operations. This exception can occur when listing objects such as DataSource.

* * @throws {@link PredictorNotMountedException} (client fault) *

The exception is thrown when a predict request is made to an unmounted MLModel.

* * @throws {@link ResourceNotFoundException} (client fault) *

A specified resource cannot be located.

* * @throws {@link MachineLearningServiceException} *

Base exception class for all service exceptions from MachineLearning service.

* * * @public */ export declare class PredictCommand extends PredictCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PredictInput; output: PredictOutput; }; sdk: { input: PredictCommandInput; output: PredictCommandOutput; }; }; }