Questions tagged [target-encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

One-Hot-Encoding Target variable

I have a dataset that consists of 4 values in a target variable. I have performed Ordinal Encoding over that which worked for me but my question here's that if I apply one-hot encoding can I solve ...
1
vote
1answer
32 views

Predict apartment prices with two sources of prices

I am asking for help with the following problem. There are two subsamples in the dataset - one where the target is real(valid), and the other where it is approximate (I do not know how it differs yet, ...
0
votes
0answers
78 views

target encoding with multiple columns

I'm attempting to do target encoding with multiple columns on a dataframe and I'm getting an error message I don't understand. Here is a fragment of the code. ...
0
votes
0answers
10 views

Why is my validation score so much higher using TargetEncoder?

So I'm experimenting a bit with an XGBoost model & encoding the categorical variables using the target encoder from the category_encoders library. The code below shows how I split the dataset and ...
0
votes
0answers
16 views

target encoding and weighting

I am working on a project in which I use data of movies and I represent each movie as a vector of length of 15. So there are 15 features ranging from genre to director. Most of the features are ...
0
votes
0answers
21 views

Binary classification or Single-class classification for data with Boolean label

In supervised learning. For simple prediction/classification problems like Will it rain tomorrow? or more serious one like disease diagnosis I often encountering ...
0
votes
0answers
46 views

why does tox21 loads as having 12 classes in pytorch geometric?

Why is the tox21 dataset loaded with predefined 12 classes when it should be binary classification, thus two classes? Code sampled modified: ...
0
votes
1answer
193 views

why should i do target encoding within cv loop?

i wish to use target encoding, using the category encoders sklearn library. I don't really understand why it is necessary to include this as a step in a sklearn pipeline WITHIN the cross validation ...
-1
votes
1answer
39 views

How Should I deal with my imbalanced binary target [closed]

I am trying to model my data with Python and i am having concerns about my binary target variable, because it has 90% cases falling in 0 and 10% of the cases falling in 1. I have tried upsampling my ...
1
vote
1answer
60 views

Interpreting decision tree results after target encoding

I am not sure how to interpret the results of my decision tree after I had used target encoding, could someone clarify? The example below doesn't need target encoding just for explanation of my ...
4
votes
1answer
1k views

Target encoding with KFold cross-validation - how to transform test set?

Let's say I have a categorical feature (cat): ...
0
votes
1answer
38 views

Logistic Regression Multi-level Independent variables

im trying to study logistic regression, when i did the target variable with all features, i had the summary showing the p-values as usual, but one for the features has 60 level, another feature has 13 ...
2
votes
1answer
208 views

Categories with the same mean in target encoding

While doing target encoding it can happen that two categories have the same target mean. This is bad because there will be no difference in the new feature in it and we will lose some information. ...