The sklearn.* module is deprecated in version 0.22 and will be removed in version 0.24
问题 I am migrating a piece of software from Python 2.7 to Python 3. One problem that arises is: The sklearn.neighbors.kde module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.neighbors. Anything that cannot be imported from sklearn.neighbors is now part of the private API. I am not sure which line causes this, and not sure if it is an error or a warning, and what are the implications. On python 2.7