Questions tagged [target-encoding]
The target-encoding tag has no usage guidance.
17
questions
0
votes
0
answers
24
views
Using transformer to predict permutation of tokens based on encoded input
i am trying to implement a transformer based agent for a tile placing board game, and i was thinking about this kind of architecture:
Src input is embedded board, with an empty block (for example ...
2
votes
1
answer
83
views
Does it make sense to impute the target variable when there are a few missing target values in my dataset?
I'm relatively new to machine learning and just trying to have a solid understanding of the basics.
I scraped a real estate/house prices dataset off a website, which I am in the process of cleaning ...
0
votes
0
answers
85
views
Do you need to normalize labels for models other than neural nets?
As mentioned here, normalizing the target variable often helps a neural network converge faster.
Does it help in convergence, or is there otherwise a reason to use it, for any type of model other than ...
0
votes
0
answers
23
views
Multi-class classification model unable to return desired outcome
I have a scenario of multi-class dataset with around 10 distinct classes of target. There are 3 categorical features each with multiple labels. If we check the data, each unique combination of feature ...
2
votes
1
answer
421
views
How do we target-encode categorical features in multi class classification problems?
Say I have a multiclass problem with a dataset as this:
...
0
votes
1
answer
38
views
Dealing with observation with arbitrary number of categories with arbitary number of values
Suppose to have a set of elements $X = \{x_1, x_2, ..., x_n\}$. Each element is characterised by a set of features. The features characterising a particular element $x_i$ can belong to one of $q$ ...
2
votes
0
answers
199
views
Does it make sense to use target encoding together with tree-based models?
I'm working on a regression problem with a few high-cardinality categorical features (Forecasting different items with a single model).
Someone suggested to use target-encoding (mean/median of the ...
0
votes
2
answers
131
views
Is normalization needed for TargetEncoded Variables?
Basically the title.
If I encode the address of people (the cities they live in) with a target encoder, do I still need to normalize that column? Of course, the capital is going to have more citizens ...
1
vote
1
answer
1k
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 ...
2
votes
1
answer
46
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
1
answer
822
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
1
answer
463
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
1
answer
51
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
1
answer
164
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 ...
5
votes
1
answer
3k
views
Target encoding with KFold cross-validation - how to transform test set?
Let's say I have a categorical feature (cat):
...
0
votes
1
answer
49
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
1
answer
446
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.
...