Skip to content

Is there support for string feature values with preprocess_one_hot_encoding()? #3480

@evRivera

Description

@evRivera

I'm trying to do some preprocessing of my dataset with mlpack one hot encoding. My dataset includes categorical feature values and I'm seeing the following error when feeding the data to preprocess_one_hot_encoding():
ValueError: could not convert string to float: 'abc'

If I first convert the categorical (string) values to numerical values then preprocess_one_hot_encoding() works. Generally, one hot encoding is a technique that takes string values and encodes it to numerical values. Does mlpack preprocess_one_hot_encoding() support string values?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions