train

fun train(ctx: ExecutionContext, dataset: Iterable<Pair<Tensor<T, V>, Tensor<out DType, *>>>, epochs: Int = 1)(source)

Optional helper to run a training loop over a dataset.