{
  "id": 541106,
  "title": "About a lag sample(lags.parquet)",
  "url": "/competitions/jane-street-real-time-market-data-forecasting/discussion/541106",
  "author_name": "",
  "post_date": "2024-10-17T17:02:16.582053Z",
  "votes": 21,
  "comment_count": 15,
  "views": 0,
  "content": "<p>I think the key lies in how we use the lag.</p>\n<p>The explanation mentions that all of the previous day's responder results are provided when time_id = 0.</p>\n<pre><code>lags.parquet - Values  responder_{.} lagged  one date_id. The evaluation API serves  entirety   lagged responders  a date_id   date_id's  time_id. In other , all   previous 's responders will be served     step   succeeding .\n</code></pre>\n<p>But in the lag sample (lags.parquet), we only see the time_id = 0 from the previous day. I believe that, ideally, the sample should include all time_id values on the previous day. (It's confusing otherwise.)</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4001300%2F40bf737fbb6bd3fdf5807324c7f1e1f7%2FClipboard03.jpg?generation=1729184552987927&amp;alt=media\" alt=\"\"></p>\n<p>Is it correct to assume that all time_id values from the previous day will actually be available during submission?</p>\n<p>With the new API, this part is unclear and hard to verify.</p>",
  "messages": [
    {
      "id": "3020583",
      "postDate": "10/17/2024 17:02:16",
      "content": "<p>I think the key lies in how we use the lag.</p>\n<p>The explanation mentions that all of the previous day's responder results are provided when time_id = 0.</p>\n<pre><code>lags.parquet - Values  responder_{.} lagged  one date_id. The evaluation API serves  entirety   lagged responders  a date_id   date_id's  time_id. In other , all   previous 's responders will be served     step   succeeding .\n</code></pre>\n<p>But in the lag sample (lags.parquet), we only see the time_id = 0 from the previous day. I believe that, ideally, the sample should include all time_id values on the previous day. (It's confusing otherwise.)</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4001300%2F40bf737fbb6bd3fdf5807324c7f1e1f7%2FClipboard03.jpg?generation=1729184552987927&amp;alt=media\" alt=\"\"></p>\n<p>Is it correct to assume that all time_id values from the previous day will actually be available during submission?</p>\n<p>With the new API, this part is unclear and hard to verify.</p>",
      "rawMarkdown": "I think the key lies in how we use the lag.\n\nThe explanation mentions that all of the previous day's responder results are provided when time_id = 0.\n~~~\nlags.parquet - Values of responder_{0...8} lagged by one date_id. The evaluation API serves the entirety of the lagged responders for a date_id on that date_id's first time_id. In other words, all of the previous date's responders will be served at the first time step of the succeeding date.\n~~~\n\nBut in the lag sample (lags.parquet), we only see the time_id = 0 from the previous day. I believe that, ideally, the sample should include all time_id values on the previous day. (It's confusing otherwise.)\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4001300%2F40bf737fbb6bd3fdf5807324c7f1e1f7%2FClipboard03.jpg?generation=1729184552987927&alt=media)\n\nIs it correct to assume that all time_id values from the previous day will actually be available during submission?\n\nWith the new API, this part is unclear and hard to verify.",
      "votes": null
    },
    {
      "id": "3020603",
      "postDate": "10/17/2024 17:33:14",
      "content": "<p>I have verified this by submitting several tests. From what I see, the number of unique time_ids can be as large as 968. So I believe the demo lags they provide is just an confusing example. </p>",
      "rawMarkdown": "I have verified this by submitting several tests. From what I see, the number of unique time_ids can be as large as 968. So I believe the demo lags they provide is just an confusing example.",
      "votes": null
    },
    {
      "id": "3020695",
      "postDate": "10/17/2024 19:50:23",
      "content": "<p>I agree, the example containing only zero-valued time_id is misleading. <br>\nAs far as I see, we are provided with the full yesterday responders data in the <code>lags</code> argument each time we have <code>time_id</code> == 0</p>",
      "rawMarkdown": "I agree, the example containing only zero-valued time_id is misleading. \nAs far as I see, we are provided with the full yesterday responders data in the `lags` argument each time we have `time_id` == 0",
      "votes": null
    },
    {
      "id": "3020842",
      "postDate": "10/18/2024 00:19:35",
      "content": "<p><a href=\"https://www.kaggle.com/lihaorocky\" target=\"_blank\">@lihaorocky</a> Thank you for sharing the verification results! It's a perfect answer.</p>",
      "rawMarkdown": "lihaorocky Thank you for sharing the verification results! It's a perfect answer.",
      "votes": null
    },
    {
      "id": "3020843",
      "postDate": "10/18/2024 00:20:19",
      "content": "<p><a href=\"https://www.kaggle.com/kdmitrie\" target=\"_blank\">@kdmitrie</a> Thank you for the comment! That's exactly right!</p>",
      "rawMarkdown": "kdmitrie Thank you for the comment! That's exactly right!",
      "votes": null
    },
    {
      "id": "3024809",
      "postDate": "10/22/2024 03:13:00",
      "content": "<p>Are you using the lags? In my attempts to do so, I end up with very bad results. This isn’t exact code but I’m typing on phone… I’m doing test.join(lags_, on id_columns, left). I engineered features locally but can’t seem to create and use them in predict method.  </p>",
      "rawMarkdown": "Are you using the lags? In my attempts to do so, I end up with very bad results. This isn’t exact code but I’m typing on phone… I’m doing test.join(lags_, on id_columns, left). I engineered features locally but can’t seem to create and use them in predict method.",
      "votes": null
    },
    {
      "id": "3024816",
      "postDate": "10/22/2024 03:30:54",
      "content": "<p><a href=\"https://www.kaggle.com/jackvd\" target=\"_blank\">@jackvd</a> As for my results so far, the CV has worsened locally, so I'm not using it for predictions. It seems I still need to do a bit more work.</p>",
      "rawMarkdown": "jackvd As for my results so far, the CV has worsened locally, so I'm not using it for predictions. It seems I still need to do a bit more work.",
      "votes": null
    },
    {
      "id": "3039293",
      "postDate": "11/07/2024 21:47:01",
      "content": "<p>Can somebody give us a small set of samples of lag and test files as they are fed from the API.This may solve lots of problems .<br>\nThank you.</p>",
      "rawMarkdown": "Can somebody give us a small set of samples of lag and test files as they are fed from the API.This may solve lots of problems .\nThank you.",
      "votes": null
    },
    {
      "id": "3044849",
      "postDate": "11/13/2024 22:24:15",
      "content": "<p><a href=\"https://www.kaggle.com/lihaorocky\" target=\"_blank\">@lihaorocky</a><br>\nJust to clarify, you mean that for each unique combination of symbol_id and date_id, we have different lags for 968 time_id values, not just for time_id=0(or lags of time_id!=0 equal to lags of time_id=0)?</p>",
      "rawMarkdown": "lihaorocky\nJust to clarify, you mean that for each unique combination of symbol_id and date_id, we have different lags for 968 time_id values, not just for time_id=0(or lags of time_id!=0 equal to lags of time_id=0)?",
      "votes": null
    },
    {
      "id": "3045124",
      "postDate": "11/14/2024 07:31:19",
      "content": "<p>i believe so, all previouse date time_id will be served, but today's time_id might not match yesterday's</p>",
      "rawMarkdown": "i believe so, all previouse date time_id will be served, but today's time_id might not match yesterday's",
      "votes": null
    },
    {
      "id": "3057596",
      "postDate": "11/28/2024 10:56:37",
      "content": "<p>how about the days before yesterday, do we have access to them all?</p>",
      "rawMarkdown": "how about the days before yesterday, do we have access to them all?",
      "votes": null
    },
    {
      "id": "3077466",
      "postDate": "12/21/2024 02:18:47",
      "content": "<p>Hi, <a href=\"https://www.kaggle.com/kdmitrie\" target=\"_blank\">@kdmitrie</a> </p>\n<blockquote>\n  <p>we are provided with the full yesterday responders data in the lags argument each time we have time_id == 0</p>\n</blockquote>\n<p>I am confused here, for each symbol on a single date, at each time id, there's a different responder value, how can that all be served at a single <code>time_id == 0</code> ? Do you know how this works?</p>",
      "rawMarkdown": "Hi, @kdmitrie \n> we are provided with the full yesterday responders data in the lags argument each time we have time_id == 0\n\nI am confused here, for each symbol on a single date, at each time id, there's a different responder value, how can that all be served at a single `time_id == 0` ? Do you know how this works?",
      "votes": null
    },
    {
      "id": "3078175",
      "postDate": "12/21/2024 22:18:05",
      "content": "<p>Can you elaborate more on what it means for today's time_id not to match yesterday's? Does it mean that each day may serve a different set of <code>time_ids</code> e.g. today's data contains (1, 2, 4), while tomorrow's data contains (3, 4, 5)? </p>",
      "rawMarkdown": "Can you elaborate more on what it means for today's time_id not to match yesterday's? Does it mean that each day may serve a different set of `time_ids` e.g. today's data contains (1, 2, 4), while tomorrow's data contains (3, 4, 5)?",
      "votes": null
    },
    {
      "id": "3078176",
      "postDate": "12/21/2024 22:19:50",
      "content": "<p>Do we have a prior for what the <code>time_ids</code> physically stand for? Maybe each minute of trading?</p>",
      "rawMarkdown": "Do we have a prior for what the `time_ids` physically stand for? Maybe each minute of trading?",
      "votes": null
    },
    {
      "id": "3078385",
      "postDate": "12/22/2024 08:19:03",
      "content": "<p>no. intervals between time id are not guaranteed to be equal </p>",
      "rawMarkdown": "no. intervals between time id are not guaranteed to be equal",
      "votes": null
    },
    {
      "id": "3079611",
      "postDate": "12/23/2024 22:27:02",
      "content": "<p>If the previous date_id's lags are given at time_id = 0, does this mean that for all other time_ids (time_id &gt;0), lags is None?<br>\nIf not None, then will the first lag of the current time_id at least be given?</p>",
      "rawMarkdown": "If the previous date_id's lags are given at time_id = 0, does this mean that for all other time_ids (time_id >0), lags is None?\nIf not None, then will the first lag of the current time_id at least be given?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3020603,
      "author_name": "lihaorocky",
      "author_url": "",
      "post_date": "10/17/2024 17:33:14",
      "content": "<p>I have verified this by submitting several tests. From what I see, the number of unique time_ids can be as large as 968. So I believe the demo lags they provide is just an confusing example. </p>",
      "votes": null,
      "replies": [
        {
          "id": 3020695,
          "author_name": "kdmitrie",
          "author_url": "",
          "post_date": "10/17/2024 19:50:23",
          "content": "<p>I agree, the example containing only zero-valued time_id is misleading. <br>\nAs far as I see, we are provided with the full yesterday responders data in the <code>lags</code> argument each time we have <code>time_id</code> == 0</p>",
          "votes": null,
          "replies": [
            {
              "id": 3020843,
              "author_name": "chumajin",
              "author_url": "",
              "post_date": "10/18/2024 00:20:19",
              "content": "<p><a href=\"https://www.kaggle.com/kdmitrie\" target=\"_blank\">@kdmitrie</a> Thank you for the comment! That's exactly right!</p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 3057596,
              "author_name": "metropolis40",
              "author_url": "",
              "post_date": "11/28/2024 10:56:37",
              "content": "<p>how about the days before yesterday, do we have access to them all?</p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 3077466,
              "author_name": "zhangyue199",
              "author_url": "",
              "post_date": "12/21/2024 02:18:47",
              "content": "<p>Hi, <a href=\"https://www.kaggle.com/kdmitrie\" target=\"_blank\">@kdmitrie</a> </p>\n<blockquote>\n  <p>we are provided with the full yesterday responders data in the lags argument each time we have time_id == 0</p>\n</blockquote>\n<p>I am confused here, for each symbol on a single date, at each time id, there's a different responder value, how can that all be served at a single <code>time_id == 0</code> ? Do you know how this works?</p>",
              "votes": null,
              "replies": []
            }
          ]
        },
        {
          "id": 3020842,
          "author_name": "chumajin",
          "author_url": "",
          "post_date": "10/18/2024 00:19:35",
          "content": "<p><a href=\"https://www.kaggle.com/lihaorocky\" target=\"_blank\">@lihaorocky</a> Thank you for sharing the verification results! It's a perfect answer.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 3024809,
          "author_name": "jackvd",
          "author_url": "",
          "post_date": "10/22/2024 03:13:00",
          "content": "<p>Are you using the lags? In my attempts to do so, I end up with very bad results. This isn’t exact code but I’m typing on phone… I’m doing test.join(lags_, on id_columns, left). I engineered features locally but can’t seem to create and use them in predict method.  </p>",
          "votes": null,
          "replies": [
            {
              "id": 3024816,
              "author_name": "chumajin",
              "author_url": "",
              "post_date": "10/22/2024 03:30:54",
              "content": "<p><a href=\"https://www.kaggle.com/jackvd\" target=\"_blank\">@jackvd</a> As for my results so far, the CV has worsened locally, so I'm not using it for predictions. It seems I still need to do a bit more work.</p>",
              "votes": null,
              "replies": []
            }
          ]
        },
        {
          "id": 3044849,
          "author_name": "arturkhodakovskiy",
          "author_url": "",
          "post_date": "11/13/2024 22:24:15",
          "content": "<p><a href=\"https://www.kaggle.com/lihaorocky\" target=\"_blank\">@lihaorocky</a><br>\nJust to clarify, you mean that for each unique combination of symbol_id and date_id, we have different lags for 968 time_id values, not just for time_id=0(or lags of time_id!=0 equal to lags of time_id=0)?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 3078176,
          "author_name": "roguekk007",
          "author_url": "",
          "post_date": "12/21/2024 22:19:50",
          "content": "<p>Do we have a prior for what the <code>time_ids</code> physically stand for? Maybe each minute of trading?</p>",
          "votes": null,
          "replies": [
            {
              "id": 3078385,
              "author_name": "shiyili",
              "author_url": "",
              "post_date": "12/22/2024 08:19:03",
              "content": "<p>no. intervals between time id are not guaranteed to be equal </p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 3039293,
      "author_name": "georgem",
      "author_url": "",
      "post_date": "11/07/2024 21:47:01",
      "content": "<p>Can somebody give us a small set of samples of lag and test files as they are fed from the API.This may solve lots of problems .<br>\nThank you.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 3045124,
      "author_name": "zoutain",
      "author_url": "",
      "post_date": "11/14/2024 07:31:19",
      "content": "<p>i believe so, all previouse date time_id will be served, but today's time_id might not match yesterday's</p>",
      "votes": null,
      "replies": [
        {
          "id": 3078175,
          "author_name": "roguekk007",
          "author_url": "",
          "post_date": "12/21/2024 22:18:05",
          "content": "<p>Can you elaborate more on what it means for today's time_id not to match yesterday's? Does it mean that each day may serve a different set of <code>time_ids</code> e.g. today's data contains (1, 2, 4), while tomorrow's data contains (3, 4, 5)? </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 3079611,
      "author_name": "anthonyoquendo",
      "author_url": "",
      "post_date": "12/23/2024 22:27:02",
      "content": "<p>If the previous date_id's lags are given at time_id = 0, does this mean that for all other time_ids (time_id &gt;0), lags is None?<br>\nIf not None, then will the first lag of the current time_id at least be given?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3020583": "I think the key lies in how we use the lag.\n\nThe explanation mentions that all of the previous day's responder results are provided when time_id = 0.\n~~~\nlags.parquet - Values of responder_{0...8} lagged by one date_id. The evaluation API serves the entirety of the lagged responders for a date_id on that date_id's first time_id. In other words, all of the previous date's responders will be served at the first time step of the succeeding date.\n~~~\n\nBut in the lag sample (lags.parquet), we only see the time_id = 0 from the previous day. I believe that, ideally, the sample should include all time_id values on the previous day. (It's confusing otherwise.)\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F4001300%2F40bf737fbb6bd3fdf5807324c7f1e1f7%2FClipboard03.jpg?generation=1729184552987927&alt=media)\n\nIs it correct to assume that all time_id values from the previous day will actually be available during submission?\n\nWith the new API, this part is unclear and hard to verify.",
    "3020603": "I have verified this by submitting several tests. From what I see, the number of unique time_ids can be as large as 968. So I believe the demo lags they provide is just an confusing example.",
    "3020695": "I agree, the example containing only zero-valued time_id is misleading. \nAs far as I see, we are provided with the full yesterday responders data in the `lags` argument each time we have `time_id` == 0",
    "3020842": "lihaorocky Thank you for sharing the verification results! It's a perfect answer.",
    "3020843": "kdmitrie Thank you for the comment! That's exactly right!",
    "3024809": "Are you using the lags? In my attempts to do so, I end up with very bad results. This isn’t exact code but I’m typing on phone… I’m doing test.join(lags_, on id_columns, left). I engineered features locally but can’t seem to create and use them in predict method.",
    "3024816": "jackvd As for my results so far, the CV has worsened locally, so I'm not using it for predictions. It seems I still need to do a bit more work.",
    "3039293": "Can somebody give us a small set of samples of lag and test files as they are fed from the API.This may solve lots of problems .\nThank you.",
    "3044849": "lihaorocky\nJust to clarify, you mean that for each unique combination of symbol_id and date_id, we have different lags for 968 time_id values, not just for time_id=0(or lags of time_id!=0 equal to lags of time_id=0)?",
    "3045124": "i believe so, all previouse date time_id will be served, but today's time_id might not match yesterday's",
    "3057596": "how about the days before yesterday, do we have access to them all?",
    "3077466": "Hi, @kdmitrie \n> we are provided with the full yesterday responders data in the lags argument each time we have time_id == 0\n\nI am confused here, for each symbol on a single date, at each time id, there's a different responder value, how can that all be served at a single `time_id == 0` ? Do you know how this works?",
    "3078175": "Can you elaborate more on what it means for today's time_id not to match yesterday's? Does it mean that each day may serve a different set of `time_ids` e.g. today's data contains (1, 2, 4), while tomorrow's data contains (3, 4, 5)?",
    "3078176": "Do we have a prior for what the `time_ids` physically stand for? Maybe each minute of trading?",
    "3078385": "no. intervals between time id are not guaranteed to be equal",
    "3079611": "If the previous date_id's lags are given at time_id = 0, does this mean that for all other time_ids (time_id >0), lags is None?\nIf not None, then will the first lag of the current time_id at least be given?"
  },
  "source": "meta"
}