Before revision: Decimal Binary Gray code One-hot 0 000 000 00000001 1 001 001 00000010 2 010 011 00000100 3 011 010 00001000 4 100 110 00010000 5 101 111 00100000 6 110 101 01000000 7 111 100 10000000 In digital circuits and machine learning, a one-hot is a group of bits among which the legal combinations of values are only those with a single high (1) bit and all the others low (0).
After revision: Decimal Binary Unary One-hot 0 00000000 000 0000000000001 1 001 001 00000010 2 010 00000011 0000000001110 3 011 010 00001000 4 100 00001111 00010000 5 101 00011111 00100000 6 110 00111111 0011111110000 7 111 100 10000000 In digital circuits and machine learning, a one-hot is a group of bits among which the legal combinations of values are only those with a single high (1) bit and all the others low (0).