Fixed an assertion, it was checking the dimensionality of the input data matrix, rather than that of the labels.