Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [one-hot-encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

Using a neural network to predict a single discrete number

I am working on a project that uses a categorical and non categorical dataset to predict a Success/Fail rate. Each entry/data point has multiple categorical and numerical parameters tied to a rate. We ...
J. Bringas's user avatar
0 votes
0 answers
14 views

Is sparse categorical crossentropy support arbitrary custom label encoding?

As we know that in AI tools like tensorflow has loss named sparse_categorical_crossentropy which bassically ...
Muhammad Ikhwan Perwira's user avatar
2 votes
1 answer
121 views

How can we create an encoding scheme that captures these relationships between the suits of cards in poker?

In poker, a standard deck of 52 cards is used. Each card has one of 13 ranks, ranging from Ace to Deuce, and one of 4 suits: Spades, Hearts, Diamonds, or Clubs. The rank of a card is crucial. For ...
Kasia's user avatar
  • 303
0 votes
0 answers
26 views

Encoding categorical data with "many" unique values in neural network

I am new to machine learning, in fact, I am implementing my first deep neural network from scratch without any framework. The dataset has 3500 rows, and 4 categorial columns of which two have about ...
M a m a D's user avatar
  • 113
1 vote
0 answers
43 views

When training a convolutional neural net, what if the channels in my image are mutually exclusive?

I'm attempting to train a convolutional neural net to perform binary classification of volumes of shape $(H, W, C)$ (i.e., height, width, channels). For the sake of this example, let's say that the ...
tomsasani's user avatar
1 vote
2 answers
172 views

Backpropagation with CrossEntropy and Softmax, HOW?

Let Zs be the input of the output layer (for example, Z1 is the input of the first neuron in the output layer), Os be the output of the output layer (which are actually the results of applying the ...
qazaq's user avatar
  • 11
0 votes
0 answers
84 views

Training a neural network to produce a one-hot encoding vector out of a single feature

I would like to build a neural network that takes a natural number and generates a one-hot encoding vector corresponding to that number. Example: $2 \rightarrow (0,0,1,0,\dots)$ More formally, I ...
Aldan Creo's user avatar
0 votes
0 answers
26 views

predict a one-hot vector which sum is 2 (so not really a one-hot vector)

So I basically have a $n$ classes. I have an input. My data is organised in the following way: each input has a label, this label is 2 classes. It can be twice the same class, or two different classes....
FluidMechanics Potential Flows's user avatar
0 votes
1 answer
206 views

Dummy variable trap in neural networks and class visualization

Let's say I have data records looking like that: (x1, x2, x3, x4, ..., x100), where each x can be either ...
leleogere's user avatar
  • 101
2 votes
2 answers
193 views

How to embed game grid state with walls as an input to neural network

I've read most of the posts on here regarding this subject, however most of them deal with gameboards where there are two different categories of single pieces on a board without walls etc. My game ...
Arlo Rostirolla's user avatar
1 vote
0 answers
33 views

Is label-embedding similar to one-hot encoding?

In one-hot encoding, a vector is given to each class label. For each class, only one entry of the vector is equal to 1 and the remaining entries are zeros in this encoding. Thus, in one-hot encoding, ...
hanugm's user avatar
  • 3,890
2 votes
1 answer
231 views

Is categorical encoding a type of word embedding?

Word embedding refers to the techniques in which a word is represented by a vector. There are also integer encoding and one-hot encoding, which I will collectively call categorical encoding. I can see ...
hanugm's user avatar
  • 3,890