predictAsync method

Future<Y> predictAsync(
  1. X x
)

Calculates prediction asynchronously.

Implementation

Future<Y> predictAsync(X x) => Future<Y>(() => predict(x));