Viewing a single comment thread. View all comments

Meddhouib10 t1_isnjh7k wrote

Reply to comment by Marvsdd01 in [R] Embedding dates ? by MichelMED10

Yes I by embedding I meant transforming each number of months to a vector, like nn.embedding in pytorch (knowing that the difference between dates can’t be more than 5 years so 60 months) Thanks for the answer !

1

Marvsdd01 t1_iso6fyu wrote

So maybe you could make every date an Unix timestamp, which is an integer, then you get the difference between those integers, then you can use an standard or min max scaler to put it under a certain interval.

I do not think anyone ever encoded dates as embeddings the way you're proposing, just because you can already get these kind of representations by using Unix timestamp.

3