predict

abstract fun predict(inputData: FloatArray): Int

Predicts the class of inputData.

Return

Predicted class index.

Parameters

inputData

The single example with unknown label.

fun predict(dataset: Dataset): List<Int>

Predicts labels for all observation in dataset.

NOTE: Slow method.

Parameters

dataset

Dataset.