predict method
Calculates prediction.
Throws UnsupportedError if only predictAsync is supported.
Implementation
@override
Tensor<double> predict(Tensor<double> x) {
return coefficients * x + constants;
}
Calculates prediction.
Throws UnsupportedError if only predictAsync is supported.
@override
Tensor<double> predict(Tensor<double> x) {
return coefficients * x + constants;
}