How can I create a layer in Keras (I am using the functional API) that transforms an input sequence to a multi-label vector. The layer must execute the mapping, I don't want to learn the mapping by learning parameter weights.
As input I have vectors as shown here in keras:
[ nan nan nan nan nan nan 342. 367. 453. 1971. nan nan
nan nan 2]
and I need to map the first 10 numbers of the input vector to a vector that looks like this:
[x1 =0,x2=0,..., x342=1, ..., x367=1,... x453=1,... x1971=1,... xN]
How can I create a layer that can do this? Is there an existing layer for this?