Today I try to import tpot,but I get some troule....
the error is below:
ImportError Traceback (most recent call last)
<ipython-input-7-f83a5b0ba8d0> in <module>
----> 1 from tpot import TPOTRegressor
~\Anaconda3\lib\site-packages\tpot\__init__.py in <module>
25
26 from ._version import __version__
---> 27 from .tpot import TPOTClassifier, TPOTRegressor
28 from .driver import main
~\Anaconda3\lib\site-packages\tpot\tpot.py in <module>
29 import numpy as np
30
---> 31 from .base import TPOTBase
32 from .config.classifier import classifier_config_dict
33 from .config.regressor import regressor_config_dict
~\Anaconda3\lib\site-packages\tpot\base.py in <module>
81 from .config.regressor_cuml import regressor_config_cuml
82
---> 83 from .metrics import SCORERS
84 from .gp_types import Output_Array
85 from .gp_deap import (
~\Anaconda3\lib\site-packages\tpot\metrics.py in <module>
25
26 import numpy as np
---> 27 from sklearn.metrics import get_scorer, get_scorer_names, make_scorer
28
29
ImportError: cannot import name 'get_scorer_names' from 'sklearn.metrics' (C:\Users\Luoyk\AppData\Roaming\Python\Python37\site-packages\sklearn\metrics\__init__.py)
Today I try to import tpot,but I get some troule....
the error is below:
how to resolve it ?