Prediction
import type { Prediction } from "https://aws-api.deno.dev/v0.4/services/machinelearning.ts?docs=full";
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.
interface Prediction {
details?: [key in DetailsAttributes]: string | null | undefined | null;
predictedLabel?: string | null;
predictedScores?: {} | null;
[key: string]: number | null | undefined;
predictedValue?: number | null;
}§Properties
§
details?: [key in DetailsAttributes]: string | null | undefined | null
[src]