scikit-learn/scikit-learn — pull request #2797 by cli248 (2014-01-28 20:29:12+00:00)
Title: Fix deprecation warning in Python 3

This PR fixed the second failed test case in #2737. The following line caused the failure,

drop_idx = active.pop(idx)

`idx`'s type is `numpy.ndarray`, `pop` operation raised

DeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future

To fix it, just using `active.pop(idx[0])`.

This PR also changed `floating point division` to `floor division`. `Floating point division` caused

DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future

in `Python 3`