{
  "id": 540964,
  "title": "Bug in the submission API leading to always None for lags",
  "url": "/competitions/jane-street-real-time-market-data-forecasting/discussion/540964",
  "author_name": "",
  "post_date": "2024-10-16T19:56:08.164399600Z",
  "votes": 2,
  "comment_count": 3,
  "views": 0,
  "content": "<p>In the API function, there is a bug that leads to always None for lags. </p>\n<p>In the following code, <code>time_id</code> is a tuple <code>(0, )</code> instead of an integer. Change it to  <code>time_id[0] == 0</code> can solve the problem.</p>\n<pre><code> time_id,   test_batches:\n  test_data = (, lags  time_id == 0  None)\n</code></pre>\n<p>Can you please have a look?</p>\n<p><a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> <a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a> </p>",
  "messages": [
    {
      "id": "3019737",
      "postDate": "10/16/2024 19:56:08",
      "content": "<p>In the API function, there is a bug that leads to always None for lags. </p>\n<p>In the following code, <code>time_id</code> is a tuple <code>(0, )</code> instead of an integer. Change it to  <code>time_id[0] == 0</code> can solve the problem.</p>\n<pre><code> time_id,   test_batches:\n  test_data = (, lags  time_id == 0  None)\n</code></pre>\n<p>Can you please have a look?</p>\n<p><a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> <a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a> </p>",
      "rawMarkdown": "In the API function, there is a bug that leads to always None for lags. \n\nIn the following code, `time_id` is a tuple `(0, )` instead of an integer. Change it to  `time_id[0] == 0 ` can solve the problem.\n\n```\nfor time_id, test in test_batches:\n  test_data = (test, lags if time_id == 0 else None)\n```\n\nCan you please have a look?\n\n@sohier @ryanholbrook",
      "votes": null
    },
    {
      "id": "3019758",
      "postDate": "10/16/2024 20:23:43",
      "content": "<p><a href=\"https://www.kaggle.com/shiyili\" target=\"_blank\">@shiyili</a> Thanks for the heads up. I will update.</p>",
      "rawMarkdown": "shiyili Thanks for the heads up. I will update.",
      "votes": null
    },
    {
      "id": "3019787",
      "postDate": "10/16/2024 21:13:10",
      "content": "<p>The fix is deployed. Please let me know if you run into any other problems.</p>",
      "rawMarkdown": "The fix is deployed. Please let me know if you run into any other problems.",
      "votes": null
    },
    {
      "id": "3019810",
      "postDate": "10/16/2024 22:00:17",
      "content": "<p>Wow thanks! That was fast :) </p>",
      "rawMarkdown": "Wow thanks! That was fast :)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3019758,
      "author_name": "ryanholbrook",
      "author_url": "",
      "post_date": "10/16/2024 20:23:43",
      "content": "<p><a href=\"https://www.kaggle.com/shiyili\" target=\"_blank\">@shiyili</a> Thanks for the heads up. I will update.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 3019787,
      "author_name": "ryanholbrook",
      "author_url": "",
      "post_date": "10/16/2024 21:13:10",
      "content": "<p>The fix is deployed. Please let me know if you run into any other problems.</p>",
      "votes": null,
      "replies": [
        {
          "id": 3019810,
          "author_name": "shiyili",
          "author_url": "",
          "post_date": "10/16/2024 22:00:17",
          "content": "<p>Wow thanks! That was fast :) </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3019737": "In the API function, there is a bug that leads to always None for lags. \n\nIn the following code, `time_id` is a tuple `(0, )` instead of an integer. Change it to  `time_id[0] == 0 ` can solve the problem.\n\n```\nfor time_id, test in test_batches:\n  test_data = (test, lags if time_id == 0 else None)\n```\n\nCan you please have a look?\n\n@sohier @ryanholbrook",
    "3019758": "shiyili Thanks for the heads up. I will update.",
    "3019787": "The fix is deployed. Please let me know if you run into any other problems.",
    "3019810": "Wow thanks! That was fast :)"
  },
  "source": "meta"
}