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

Root mean square error function in the metric cannot be loaded #28900

Closed
MirandaLv opened this issue Apr 26, 2024 · 1 comment
Closed

Root mean square error function in the metric cannot be loaded #28900

MirandaLv opened this issue Apr 26, 2024 · 1 comment

Comments

@MirandaLv
Copy link

Describe the bug

Hi,

I am trying to use the root mean square error function in the metric, but got below error. It was tested on python 3.8.18, with scikit-learn version 1.0.2. Another scikit-learn version of 0.23.1 was tested and had the same issue.

image

Steps/Code to Reproduce

from sklearn.metrics import root_mean_squared_error

Expected Results

the Root mean square error is imported without any error message.

Actual Results

from sklearn.metrics import root_mean_squared_error
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'root_mean_squared_error' from 'sklearn.metrics' (/opt/conda/lib/python3.8/site-packages/sklearn/metrics/init.py)

Versions

System:
    python: 3.8.18 (default, Sep 11 2023, 13:40:15)  [GCC 11.2.0]
executable: /opt/conda/bin/python
   machine: Linux-4.15.0-130-generic-x86_64-with-glibc2.17

Python dependencies:
      sklearn: 1.2.2
          pip: 23.2.1
   setuptools: 68.0.0
        numpy: 1.22.4
        scipy: 1.9.1
       Cython: None
       pandas: 2.0.1
   matplotlib: 3.7.1
       joblib: 1.2.0
threadpoolctl: 3.1.0

Built with OpenMP: True

threadpoolctl info:
       user_api: openmp
   internal_api: openmp
         prefix: libgomp
       filepath: /opt/conda/lib/python3.8/site-packages/scikit_learn.libs/libgomp-a34b3233.so.1.0.0
        version: None
    num_threads: 64

       user_api: blas
   internal_api: openblas
         prefix: libopenblas
       filepath: /opt/conda/lib/python3.8/site-packages/numpy.libs/libopenblas64_p-r0-2f7c42d4.3.18.so
        version: 0.3.18
threading_layer: pthreads
   architecture: Zen
    num_threads: 64

       user_api: blas
   internal_api: openblas
         prefix: libopenblas
       filepath: /root/.local/lib/python3.8/site-packages/scipy.libs/libopenblasp-r0-9f9f5dbc.3.18.so
        version: 0.3.18
threading_layer: pthreads
   architecture: Zen
    num_threads: 64
@MirandaLv MirandaLv added Bug Needs Triage Issue requires triage labels Apr 26, 2024
@jeremiedbb
Copy link
Member

Hi @MirandaLv, root_mean_squared_error is available since version 1.4, while you have 1.2.2.

@jeremiedbb jeremiedbb removed Bug Needs Triage Issue requires triage labels Apr 26, 2024
@adrinjalali adrinjalali closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024
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

3 participants