Coding challenge in JavaScript/TypeScript

--

I am creating a neural network that will classify images into classes. I need binary signatures for the classes. I could just insert manually. What about an algorithm?

For instance: 2 should create two different arrays, that is, [0 1] and [1 0].

Each binary signature should be unique, and they represent the output from neurons on the output layer.

--

--

Jorge Guerra Pires, PhD
IdeaCoding Lab

Independent Researcher and writer at Amazon | “I want thinkers, not followers!” | More: https://linktr.ee/jorgeguerrapiresphd