Questions tagged [target-encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
mt-clemente's user avatar
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 ...
Baker Hans's user avatar
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 ...
bdavidson's user avatar
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 ...
soumalya saha's user avatar
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: ...
CutePoison's user avatar
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$ ...
King Powa's user avatar
  • 111
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 ...
KJA's user avatar
  • 21
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 ...
lte__'s user avatar
  • 1,310
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 ...
Adnan Khan's user avatar
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, ...
glycine-addict's user avatar
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. ...
Rupert's user avatar
  • 101
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 ...
Maths12's user avatar
  • 506
-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 ...
Martin Xristev's user avatar
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 ...
bob2's user avatar
  • 13
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): ...
Xaume's user avatar
  • 182
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 ...
PureAnalytics's user avatar
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. ...
Carlos Mougan's user avatar