{
  "id": 547234,
  "title": "Encoding the date id ?",
  "url": "/competitions/jane-street-real-time-market-data-forecasting/discussion/547234",
  "author_name": "",
  "post_date": "2024-11-20T12:39:48.609147Z",
  "votes": null,
  "comment_count": 5,
  "views": 0,
  "content": "<p>I am stuck on this and maybe I am not thinking about it the right way. <br>\nHow can I encode the time series with only an ordinal number? <br>\nWhere can I read more about this? Because honestly, I don't get it. </p>",
  "messages": [
    {
      "id": "3050656",
      "postDate": "11/20/2024 12:39:48",
      "content": "<p>I am stuck on this and maybe I am not thinking about it the right way. <br>\nHow can I encode the time series with only an ordinal number? <br>\nWhere can I read more about this? Because honestly, I don't get it. </p>",
      "rawMarkdown": "I am stuck on this and maybe I am not thinking about it the right way. \nHow can I encode the time series with only an ordinal number? \nWhere can I read more about this? Because honestly, I don't get it.",
      "votes": null
    },
    {
      "id": "3051519",
      "postDate": "11/21/2024 11:14:22",
      "content": "<p>What do you mean? date_id is already ordinal (1, 2, 3…)</p>",
      "rawMarkdown": "What do you mean? date_id is already ordinal (1, 2, 3...)",
      "votes": null
    },
    {
      "id": "3055784",
      "postDate": "11/26/2024 06:00:49",
      "content": "<p>Maybe I am thinking about it in the wrong way. If it is just an ordinal and it represents a day, how would i see repeating temporal patterns ?</p>",
      "rawMarkdown": "Maybe I am thinking about it in the wrong way. If it is just an ordinal and it represents a day, how would i see repeating temporal patterns ?",
      "votes": null
    },
    {
      "id": "3056662",
      "postDate": "11/27/2024 08:52:12",
      "content": "<p>I got inspiration from some nlp research，like bert</p>",
      "rawMarkdown": "I got inspiration from some nlp research，like bert",
      "votes": null
    },
    {
      "id": "3059389",
      "postDate": "11/30/2024 16:21:42",
      "content": "<p>You can feed a sequence of data into some models for relative time differences. In that case, the actual time is not relevant. It's just like words in a sentence. But perhaps different time_id's could also be a feature in the sense that prices tend to behave differently at different times, in which case you'd want to capture that. You could even do both, treating time as a feature and time as steps in a sequence.</p>",
      "rawMarkdown": "You can feed a sequence of data into some models for relative time differences. In that case, the actual time is not relevant. It's just like words in a sentence. But perhaps different time_id's could also be a feature in the sense that prices tend to behave differently at different times, in which case you'd want to capture that. You could even do both, treating time as a feature and time as steps in a sequence.",
      "votes": null
    },
    {
      "id": "3059616",
      "postDate": "11/30/2024 22:59:33",
      "content": "<p>You can try a sinusoidal embedding vector like they used for positional encodings in transformers, or even try mod 365 on the date_ids. Although I wouldn't think using date_ids would help given the non-stationary nature of the data.</p>",
      "rawMarkdown": "You can try a sinusoidal embedding vector like they used for positional encodings in transformers, or even try mod 365 on the date_ids. Although I wouldn't think using date_ids would help given the non-stationary nature of the data.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3051519,
      "author_name": "natanlabarrere",
      "author_url": "",
      "post_date": "11/21/2024 11:14:22",
      "content": "<p>What do you mean? date_id is already ordinal (1, 2, 3…)</p>",
      "votes": null,
      "replies": [
        {
          "id": 3055784,
          "author_name": "jdsemrau",
          "author_url": "",
          "post_date": "11/26/2024 06:00:49",
          "content": "<p>Maybe I am thinking about it in the wrong way. If it is just an ordinal and it represents a day, how would i see repeating temporal patterns ?</p>",
          "votes": null,
          "replies": [
            {
              "id": 3059389,
              "author_name": "jimbeno",
              "author_url": "",
              "post_date": "11/30/2024 16:21:42",
              "content": "<p>You can feed a sequence of data into some models for relative time differences. In that case, the actual time is not relevant. It's just like words in a sentence. But perhaps different time_id's could also be a feature in the sense that prices tend to behave differently at different times, in which case you'd want to capture that. You could even do both, treating time as a feature and time as steps in a sequence.</p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 3059616,
              "author_name": "yanisfalaki",
              "author_url": "",
              "post_date": "11/30/2024 22:59:33",
              "content": "<p>You can try a sinusoidal embedding vector like they used for positional encodings in transformers, or even try mod 365 on the date_ids. Although I wouldn't think using date_ids would help given the non-stationary nature of the data.</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 3056662,
      "author_name": "dearluna",
      "author_url": "",
      "post_date": "11/27/2024 08:52:12",
      "content": "<p>I got inspiration from some nlp research，like bert</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3050656": "I am stuck on this and maybe I am not thinking about it the right way. \nHow can I encode the time series with only an ordinal number? \nWhere can I read more about this? Because honestly, I don't get it.",
    "3051519": "What do you mean? date_id is already ordinal (1, 2, 3...)",
    "3055784": "Maybe I am thinking about it in the wrong way. If it is just an ordinal and it represents a day, how would i see repeating temporal patterns ?",
    "3056662": "I got inspiration from some nlp research，like bert",
    "3059389": "You can feed a sequence of data into some models for relative time differences. In that case, the actual time is not relevant. It's just like words in a sentence. But perhaps different time_id's could also be a feature in the sense that prices tend to behave differently at different times, in which case you'd want to capture that. You could even do both, treating time as a feature and time as steps in a sequence.",
    "3059616": "You can try a sinusoidal embedding vector like they used for positional encodings in transformers, or even try mod 365 on the date_ids. Although I wouldn't think using date_ids would help given the non-stationary nature of the data."
  },
  "source": "meta"
}