susanli2016 / Machine-Learning-with-Python

Python code for common Machine Learning Algorithms
4.25k stars 4.81k forks source link

fix: train_test_split belongs to sklearn.model_seletion now. sklearn.cross_validation is deprecated #49

Open aniketDash7 opened 9 months ago

aniketDash7 commented 9 months ago

cross_validation.py:44: 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. You are using a version for which sklearn.cross_validation is not a module any longer.