predictTopNLabels

fun predictTopNLabels(it: InferenceModel, floatArray: FloatArray, labels: MutableMap<Int, String>, topN: Int = 5): MutableMap<Int, Pair<String, Float>>

Returns top-N labels for the given floatArray encoded with mapping labels.