成功解决DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection m

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/qq_41185868/article/details/87869853

Solve the problem

DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
  "This module will be removed in 0.20.", DeprecationWarning)

Solutions

Denial Warning: In version 0.18, this module has been deprecated in favor of a model selection module that moved all refactored classes and functions into. Also note that the interface of the new cv iterator is different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.")

Solution

The cross_validation module has been refactored and will be deprecated in future releases! This information prompt is a warning, and it will not affect the code programming even if it is not handled. If you want to remove it, you can update the library to the latest version, and then use the latest version cross_validation method.

Related Posts