predict

open override fun predict(dataset: Dataset, batchSize: Int, callbacks: List<Callback>): IntArray

Generates output predictions for the input samples.

Return

Array of labels. The length is equal to the Number of samples on the dataset.

Parameters

dataset

Data to predict on.

batchSize

Number of samples per batch of computation.

callbacks

Callbacks to be used during prediction phase.

open override fun predict(inputData: FloatArray): Int

Generates output prediction for the input sample.

Parameters

inputData

Unlabeled input data to define label.

open override fun predict(inputData: FloatArray, predictionTensorName: String): Int

Generates output prediction for the input sample using output of the predictionTensorName tensor.

Parameters

inputData

Unlabeled input data to define label.

predictionTensorName

Name of output tensor to make prediction.