hi guys, I'm trying to add embedding to time series samples, i have samples shape(1,60,1), with values that goes from 0 to 120, i want to add embeddings correctly to the samples, so when i pass something like this to the embedding layer:
input=
shape(1,60,1)
1-2
2-2
3-4
3-4
5-45
..........................................
60-45
the output is something like this=
shape(1,60,4)
1-[0.22, 0.53, 0.11, 023]
2-[0.22, 0.53, 0.11, 023]
3-[-0.12, 0.64, -0.11, 0.93]
4-[-0.12, 0.64, -0.11, 0.93]]
5-[-0.17, -0.66, -0.21, -072]
............................................
60-[-0.17, -0.66, -0.21, -072]
I'm already trying to do it with the code in the (image uploaded), but when i train the model, the train accuracy is always close to 0.5000 and validation accuracy is always 0.5000, so i guess I'm doing something wrong in the embedding or positional encoding part, couse when i tried to solve the problem with keras transformer for time series model (https://keras.io/examples/timeseries/timeseries_classification_transformer/) validation accuracy never got stuck at 0.5000 and it reached at least 0.5400.