Prediction class

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.

Constructors

Prediction({Map<DetailsAttributes, String>? details, String? predictedLabel, Map<String, double>? predictedScores, double? predictedValue})
Prediction.fromJson(Map<String, dynamic> json)
factory

Properties

details Map<DetailsAttributes, String>?
final
hashCode int
The hash code for this object.
no setterinherited
predictedLabel String?
The prediction label for either a BINARY or MULTICLASS MLModel.
final
predictedScores Map<String, double>?
final
predictedValue double?
The prediction value for REGRESSION MLModel.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited