moonlight/glyphs/knn.py [86:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    mode_out_of_k = tf.argmax(
        bins[:, musicscore_pb2.Glyph.NONE + 1:], axis=1) + 2
    # Force predictions to NONE only if all k nearby centroids were NONE.
    # Otherwise, the non-NONE nearby centroids will contribute to the
    # prediction.
    mode_out_of_k = tf.where(
        tf.equal(bins[:, musicscore_pb2.Glyph.NONE], k_value),
        tf.fill(
            tf.shape(mode_out_of_k), tf.to_int64(musicscore_pb2.Glyph.NONE)),
        mode_out_of_k)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



moonlight/glyphs/knn_model.py [90:99]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      mode_out_of_k = tf.argmax(
          bins[:, musicscore_pb2.Glyph.NONE + 1:], axis=1) + 2
      # Force predictions to NONE only if all k nearby centroids were NONE.
      # Otherwise, the non-NONE nearby centroids will contribute to the
      # prediction.
      mode_out_of_k = tf.where(
          tf.equal(bins[:, musicscore_pb2.Glyph.NONE], k_value),
          tf.fill(
              tf.shape(mode_out_of_k), tf.to_int64(musicscore_pb2.Glyph.NONE)),
          mode_out_of_k)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



