K
K
karkov2018-04-03 15:14:14
Python
karkov, 2018-04-03 15:14:14

How to split categories into tokens?

Good afternoon! Familiar with neural networks and machine learning, tell me how you can do the following:
There are, let's say 6 regions, they need to be somehow fed into the neural network, so I want to feed them as follows, the first region will be encoded as follows 100000, the third is - 001000, i.e. Thus, we will increase the number of neurons by the number of categories (in this case, regions), are there ready-made tools that can do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny Kravchenko, 2018-04-04
@Arseny_Info

scikit-learn.org/stable/modules/generated/sklearn....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question