Questions tagged [one-hot-encoding]
9 questions
2
votes
2 answers
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 instance, holding an Ace and a Jack is significantly…
Kasia
- 303
- 2
- 9
2
votes
2 answers
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 board has walls, and multiple instances of food.…
Arlo Rostirolla
- 31
- 1
2
votes
1 answer
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 no fundamental difference between the…
hanugm
- 4,102
- 3
- 29
- 63
1
vote
0 answers
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 volumes represent RGB images and that $C = 3$.
My…
tomsasani
- 11
- 2
1
vote
2 answers
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 softmax activation function to Zs, for example, O1 =…
qazaq
- 11
- 2
1
vote
0 answers
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, we are encoding the class label.
Is it true that…
hanugm
- 4,102
- 3
- 29
- 63
0
votes
1 answer
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 tried using a single output node to get an…
0
votes
0 answers
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 want it to take an input $i \in [0, \dots, K]$ and…
Aldan Creo
- 101
- 3
0
votes
1 answer
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 alpha, gamma or omega.
An example of record could be ('gamma', 'alpha', 'omega', 'alpha', ..., 'gamma') .
So the shape of my dataset is (N, 100)…
leleogere
- 101
- 3