我正在尝试从sklearn导入mean_squared_error,mean_absolute_error,但出现此错误:
from sklearn.metrics import mean_squared_error,mean_absolute_error
ImportError: cannot import name 'signature'
ImportError Traceback (most recent call last)
<ipython-input-38-a17f71596abb> in <module>()
from sklearn.externals.funcsigs import signature
```\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\__init__.py in <module>()
from . import _distributor_init # noqa: F401
from . import __check_build # noqa: F401
from .base import clone
from .utils._show_versions import show_versions
```\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\base.py in <module>()
```
from . import __version__
from .utils import _IS_32BIT
_DEFAULT_TAGS = {
```\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\utils\__init__.py in <module>()
```
from .murmurhash import murmurhash3_32
from .validation import (as_float_array,
assert_all_finite,
check_random_state, column_or_1d, check_array,
```\AppData\Local\Continuum\Anaconda3\lib\site-packages\sklearn\utils\validation.py in <module>()
```
from ..externals import six
from ..utils.fixes import signature
from .deprecation import deprecated
from ..exceptions import DataConversionWarning as _DataConversionWarning
```
ImportError: cannot import name 'signature'