scikit-learn/scikit-learn — comment on commit af5037ad7b24bf6d4f1f3caad2c5015cfa3ffcce
File:  line 0
By mblondel:

Checking array of integers is dangerous: I have a regression dataset where responses are all integers. A more reliable way would be to count the number of unique values but this can break too.