getTopKMostUncertainSamples(dataset, k) {
    const maxScores = this.predict_proba(dataset).max(1).arraySync()
    const maxScoreIndices = Math_.argsort(maxScores, true)
    const mostUncertainSamples = new Array(k)
    let i = 0
    for (let idx of maxScoreIndices.slice(0, k)) {
      mostUncertainSamples[i] = dataset[idx]
      mostUncertainSamples[i]['uncertainty'] = 1 - maxScores[idx]
      // mostUncertainSamples[i]['dataset_index'] = idx
      i++
    }
    return mostUncertainSamples
  }
Selects at most k samples that have the lagest uncertainty (as measured by uncertainty sampling).

array[obj], int