Created
July 24, 2017 22:28
-
-
Save olinguyen/3f3886e2933ae725ab137dae310d4fb2 to your computer and use it in GitHub Desktop.
Can't initialize MulticlassLabels with an integer array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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