Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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 a BINARY or MULTICLASS MLModel request.
  • PredictedScores - Contains the raw classification score corresponding to each label.
  • PredictedValue - Present for a REGRESSION MLModel request.
interface Prediction {
details?: [key in DetailsAttributes]: string | null | undefined | null;
predictedLabel?: string | null;
predictedScores?: {
[key: string]: number | null | undefined;
}
| null;
predictedValue?: number | null;
}

§Properties

§
details?: [key in DetailsAttributes]: string | null | undefined | null
[src]
§
predictedLabel?: string | null
[src]

The prediction label for either a BINARY or MULTICLASS MLModel.

§
predictedScores?: {
[key: string]: number | null | undefined;
}
| null
[src]
§
predictedValue?: number | null
[src]

The prediction value for REGRESSION MLModel.