predict method

  1. @override
Tensor<double> predict(
  1. Tensor<double> x
)
override

Calculates prediction.

Throws UnsupportedError if only predictAsync is supported.

Implementation

@override
Tensor<double> predict(Tensor<double> x) {
  return coefficients * x + constants;
}