PredictiveModel<X, Y> class Null safety

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. [...]
read-only, inherited
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
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