ELI5: Explain Like I'm 5

One-hot code

So imagine you have a bunch of different animals like a cat, a dog, and a bird. But you want to put them into a computer and make the computer know which animal is which.

One way to do that is with something called a one-hot code. This is like giving each animal a special code that only has one part that's "hot" or "on."

So let's say the code for a cat is 100, for a dog it's 010, and for a bird it's 001. Each code is like a little number that only has one part that's turned on, and that part tells the computer which animal it is.

If the computer sees the code 100, it will know it's a cat. If it sees 001, it will know it's a bird. And if it sees 010, it will know it's a dog.

Using a one-hot code like this makes it easy for the computer to tell different things apart, not just animals. And it's also something that people can understand and use to describe things in a way that computers can understand too.