I have 40 different images (1, ..40),( each one has 10 repetition " 40x10"),i should use one hot encoding for each image (the 40), for example image (1) the one hote encoding will be encoding will be: [ 1 0 0 0 0 0 0.....40(0)], for images 2 the one hot encoding will be : [ 0 1 0 0 0 0 0 ...40(0)], since each image has 10 repetition, for example; for the 10 images of 1 ( they are for same object but with slight difference among them), should I use same code vector for the 10 repetition!!
Asked
Active
Viewed 128 times
1 Answers
0
Since every 10 image sample belong to the same class, we need to use the same one-hot-encoded label for each image in that class, for all 40 classes.
As an example, we need to use one-hot-encoded labels [1 0 0 0 .... (40)0] (of dimension 40x1) for every one of the 10 images in the 1st class. Similarly, one-hot-encoded labels [0 1 0 0 .... (40)0] for every one of the 10 images in the 2nd class and so on.
Balraj Ashwath
- 711
- 7
- 9
<link>" is automatically produced whenever a privileged user propose to close one question as a duplicate of<link>. – Sycorax Dec 27 '19 at 21:27