Skip to content

TypeError: a float is Required in sklearn.feature_extraction.FeatureHasher (version 0.16.1) #4878

@ryadzenine

Description

@ryadzenine

Hi,
I have noticed a bug in FeatureHasher (or maybe i am using it wrong).

Here is a slmple example to reproduce the bug:

data = [{"device_id": "device1", "ad_id":"ad1"}, {"ad_id": "ad2", "other_feature": 5}]
FeatureHasher().fit_transform(data)

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