0 votes
1 view
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.5k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...