Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem when import tpot #1357

Open
LittleLeoooo opened this issue Nov 15, 2024 · 0 comments
Open

A problem when import tpot #1357

LittleLeoooo opened this issue Nov 15, 2024 · 0 comments

Comments

@LittleLeoooo
Copy link

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)

how to resolve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant