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.
Annotations
  • @JsonSerializable(includeIfNull: false, explicitToJson: true, createFactory: true, createToJson: false)

Constructors

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

Properties

details Map<String, String>
@JsonKey(name: 'details'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
predictedLabel String
The prediction label for either a BINARY or MULTICLASS MLModel.
@JsonKey(name: 'predictedLabel'), final
predictedScores Map<String, double>
@JsonKey(name: 'predictedScores'), final
predictedValue double
The prediction value for REGRESSION MLModel.
@JsonKey(name: 'predictedValue'), final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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