Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save olinguyen/3f3886e2933ae725ab137dae310d4fb2 to your computer and use it in GitHub Desktop.
Save olinguyen/3f3886e2933ae725ab137dae310d4fb2 to your computer and use it in GitHub Desktop.
Can't initialize MulticlassLabels with an integer array
import numpy as np
from modshogun import MulticlassLabels
int_labels = np.array([0, 1, 2], dtype=np.int)
MulticlassLabels(int_labels)
MulticlassLabels(int_labels.astype(np.int32))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment