Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG] ImportError: cannot import name '_get_column_indices' from 'sklearn.utils with pre-release versions #1080

Closed
@Zethson

Description

@Zethson

Describe the bug

Incompatibility with pre-release scikit-learn

Steps/Code to Reproduce

Install pre-release versions of imbalanced-learn dependencies

Import the package

Expected Results

Actual Results

/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ehrapy/init.py:12: in
from ehrapy import data as dt
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ehrapy/data/init.py:1: in
from ehrapy.data._datasets import (
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ehrapy/data/_datasets.py:6: in
from ehrapy.io._read import read_csv, read_fhir, read_h5ad
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ehrapy/io/init.py:1: in
from ehrapy.io._read import df_to_anndata, read_csv, read_fhir, read_h5ad
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ehrapy/io/_read.py:18: in
from ehrapy.preprocessing._encoding import encode
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ehrapy/preprocessing/init.py:1: in
from ehrapy.preprocessing._balanced_sampling import balanced_sample
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/ehrapy/preprocessing/_balanced_sampling.py:9: in
from imblearn.over_sampling import RandomOverSampler
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/imblearn/init.py:52: in
from . import (
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/imblearn/combine/init.py:5: in
from ._smote_enn import SMOTEENN
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/imblearn/combine/_smote_enn.py:13: in
from ..over_sampling import SMOTE
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/imblearn/over_sampling/init.py:8: in
from ._smote import SMOTE, SMOTEN, SMOTENC, SVMSMOTE, BorderlineSMOTE, KMeansSMOTE
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/imblearn/over_sampling/_smote/init.py:1: in
from .base import SMOTE, SMOTEN, SMOTENC
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/imblearn/over_sampling/_smote/base.py:18: in
from sklearn.utils import (
E ImportError: cannot import name '_get_column_indices' from 'sklearn.utils' (/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/sklearn/utils/init.py)

Versions

scikit-learn==1.5.0rc1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp