Questions tagged [one-hot-encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
48 views

Is Fasttext still use One Hot Encoding?

In the original Skipgram/CBOW both context word and target word is represented as one hot encoding. Is fasttext also use one-hot encoding for each subwords when train the skipgram/CBOW model (so the ...
1
vote
2answers
23 views

If a categorical feature only occurs a few times in a data set, should I drop it?

I have a data set of mostly categorical variables. When I one-hot encoded them some of the features occur less than 3% of the time. For instance the Tech-support feature only occurs 928 times in a ...
2
votes
1answer
31 views

Isn't one-hot encoding a waste of information? [duplicate]

I was just playing around with one-hot representations of features and thought of the following: Say that we're having 4 categories for a given feature (e.g. fruit) {Apple, Orange, Pear, Melon}. In ...
0
votes
1answer
26 views

How to handle potential interactions when one-hot encoding?

Let's say I have two categorical features: Movie, Director. I one-hot encode both the Movie and Director features for use in a linear regression model. The problem is that two or more movies may be ...
0
votes
0answers
14 views

Memory error while trying to apply Multivariate imputation by chained equations?

I have a training set consisting of movies data, which includes features like runtime, keywords, cast etc. The keywords columns consist of json collections of keywords used in the movie with ...
1
vote
2answers
52 views

Is One Hot Encoding Vectorized?

Sorry for such a weird question - I do not even know if this makes sense, however I thought of this during my intro to Python course at uni and have wondered about it since. So I have some ...
2
votes
1answer
38 views

Using One Hot Encoding VS Label Encoder for Football Match Outcomes

I am working on a project to predict football matches using bookmakers' odds. The 6 columns I have are Home Team, Away Team, Home Win Odds, Draw Odds, Away Win Odds, Outcome. The possible football ...
0
votes
1answer
26 views

What is the best way to encode features when clustering data? [duplicate]

I have a dataset with numerical and categorical features. I am trying to run a k-means algorithm to find clusters of data. What is the best way to encode categorical features? I have been doing one ...
0
votes
2answers
84 views

Dummy encoding the categorical variables using the changed version of OneHotEncoder

This is my code, I was trying to dummy encode the first column of X using OneHotEncoder but it was showing error and the documentation page of OneHotEncoder says that it has been changed and I wasn't ...
0
votes
0answers
8 views

ResNet-Architecture 18 to 152 delivers same TPR and FPR

As I ve mentioned in the title. I am using all familiar ResNet-Architectures (18, 34, 50, 101, 152) for classifying two labels ('yes' or 'no') on base of two dimensional one-hot-encoded data (...
3
votes
2answers
480 views

Beyond one-hot encoding for LSTM model in Keras

I have an LSTM model in Keras for categorical classification (20 possible categories). In many cases, my data can fit multiple categories. Obviously, my current model uses one-hot encoding and fits ...