Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (5.8k points)

I'm trying to find the equivalent of the sklearn LabelEncoder or the OrdinalEncoder in Azure ML Studio. I understand the Convert to Indicator Values module performs One-hot encoding but I can't find anything that would do label encoding.

What I have is a column with six unique string values and what I need is to represent that data with integers from 0 to 6.

Right now, I'm using the Execute Python Script module to do it but I was wondering if there's a built-in module to do it.

1 Answer

0 votes
by (9.6k points)

You can use Feature Hashing. It converts strings to integer. 

Your output will be something like this:

Hashing feature 1   Hashing feature 2   Hashing feature 3

          1                                0                            0

Want to master Machine Learning? Sign up for this Machine Learning Certification course!

Browse Categories

...