scikit-learn/scikit-learn — pull request #855 by duckworthd (2012-05-14 20:09:41+00:00)
Title: EasyFix: KNeighborsClassifier doesn't convert input to float

In reference to [this issue](https://github.com/scikit-learn/scikit-learn/issues/852). I've decided to place a conversion is `check_pairwise_arrays()` in sklearn/metrics/pairwise.py. While I can imagine cases where this could result in a loss of information, I feel they must be extremely carefully constructed and can't imagine where they might appear in a real dataset. If you believe there is a better way, let me know and I will happily change it.