8000 Unable to import FeatureHasher with scikit-learn 0.22 · Issue #15858 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
Unable to import FeatureHasher with scikit-learn 0.22 #15858
Closed
@FranzForstmayr

Description

@FranzForstmayr

Description

Importing FeatureHasher results in an ImportError

Steps/Code to Reproduce

from sklearn.feature_extraction import FeatureHasher

Expected Results

Example: No error is thrown.

Actual Results

Traceback (most recent call last):
File "", line 1, in
File "/home/franz/.local/lib/python3.6/site-packages/sklearn/feature_extraction/init.py", line 8, in
from ._hashing import FeatureHasher
ImportError: cannot import name 'FeatureHasher'

However, it's working with 0.21

Versions

System:
python: 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0]
executable: /usr/bin/python3
machine: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic

Python dependencies:
pip: 9.0.1
setuptools: 41.6.0
sklearn: 0.22
numpy: 1.17.4
scipy: 1.3.3
Cython: 0.29.13
pandas: 0.25.3
matplotlib: 3.1.1
joblib: 0.14.1

Built with OpenMP: True

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

      0