It's not immediately obvious that ClassLabelIndicatorsFromIntLabels wants contiguous class labels, and a naive user might give it labels like {-1, +1} or simply unique keys. Throwing an error here would be great.
Upon further investigation this is actually because we are indexing into a breeze array that treats (-1) as the last element of the list. Still a bug, but more subtle than I thought.
It's not immediately obvious that
ClassLabelIndicatorsFromIntLabels
wants contiguous class labels, and a naive user might give it labels like {-1, +1} or simply unique keys. Throwing an error here would be great.