SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use eye function of numpy:
numpy.eye(number of classes)[vector containing the labels]