Questions tagged [encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
31
votes
6answers
18k views

Encoding features like month and hour as categorial or numeric?

Is it better to encode features like month and hour as factor or numeric in a machine learning model? On the one hand, I feel numeric encoding might be reasonable, because time is a forward ...
3
votes
1answer
3k views

Pandas categorical variables encoding for regression (one-hot encoding vs dummy encoding)

Pandas has a method called get_dummies() that creates a dummy encoding of a categorical variable. Scikit-learn also has a OneHotEncoder that needs to be used along with a LabelEncoder. What are the ...
24
votes
2answers
26k views

How to deal with string labels in multi-class classification with keras?

I am newbie on machine learning and keras and now working a multi-class image classification problem using keras. The input is tagged image. After some pre-processing, the training data is represented ...
1
vote
2answers
92 views

The larger an encoding dimension in NLP the better? [closed]

Is the longer encoding array (word2vec or any other kind) always more precise than the shorter (not regarding the computational cost, only the performance)?
4
votes
3answers
3k views

Words to numbers faster lookup

I'm training an LSTM for sentiment analysis on a review dataset downloaded from here. The music review dataset contains about 150K data points (reviews of varying length labelled pos or neg). After ...
0
votes
1answer
179 views

Failure tolerant factor coding

There are a lot of ml-algorithms which cannot directly deal with categorical variables. A very common solution is to apply binary (dummy-) coding to still properly handle the categorical nature of ...
2
votes
1answer
458 views

Do categorical features always need to be encoded?

I'm using Spark's Machine Learning Library, and features are categorical. The features are strings, and Spark's MLlib (like many other machine learning libraries) does not accept Strings as inputs. ...
2
votes
1answer
148 views

Encoding features in sklearn

Suppose I have a dataset of size(10000, 45). One of the features in the dataset is activity_type in which the values vary from 1 to 15 as shown below: ...
13
votes
1answer
452 views

What is the difference between global and universal compression methods?

I understand that compression methods may be split into two main sets: global local The first set works regardless of the data being processed, i.e., they do not rely on any characteristic of the ...

1 2
3