PredictiveModel<X, Y> class abstract

A model that predicts output Y, given input X.

The model predictions may require asynchronous calculations. In that case, predict will throw UnsupportedError.

For linear models, use LinearTensorModel class.

Implementers

Constructors

PredictiveModel()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
predict(X x) → Y
Calculates prediction.
predictAsync(X x) Future<Y>
Calculates prediction asynchronously.
toString() String
A string representation of this object.
inherited

Operators

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