ModuleNotFoundError: No module named

Cause:

Wrong module name is entered

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-4e2ec5777b17> in <module>()
      6 import seaborn as sn
      7 import plotly as ply
----> 8 from sklearn.model_selectionlection import train_test_split
      9 from sklearn.metrics import r2_score
     10 from sklearn.ensemble import RandomForestRegressor

ModuleNotFoundError: No module named 'sklearn.model_selectionlection'

Solution:

Enter the right module name

from sklearn.model_selection import train_test_split

Leave a Reply