{
  "id": 191625,
  "title": "How is prior_question_elapsed_time calculated?",
  "url": "/competitions/riiid-test-answer-prediction/discussion/191625",
  "author_name": "",
  "post_date": "2020-10-17T15:26:58.144553800Z",
  "votes": null,
  "comment_count": 6,
  "views": 0,
  "content": "<p>As what I observe, we cannot get <code>prior_question_elapsed_time</code> from <code>timestamp</code>. Looking at an example here:</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1829450%2F9fef4772c5eea08940648fa0b3b48f5c%2F1.png?generation=1602948382755051&amp;alt=media\" alt=\"\"></p>\n<p>We see that the number in the red box is not by any way equal to the subtraction of the numbers in the blue box. So how was it generated?</p>\n<p><a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> </p>",
  "messages": [
    {
      "id": "1052308",
      "postDate": "10/17/2020 15:26:58",
      "content": "<p>As what I observe, we cannot get <code>prior_question_elapsed_time</code> from <code>timestamp</code>. Looking at an example here:</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1829450%2F9fef4772c5eea08940648fa0b3b48f5c%2F1.png?generation=1602948382755051&amp;alt=media\" alt=\"\"></p>\n<p>We see that the number in the red box is not by any way equal to the subtraction of the numbers in the blue box. So how was it generated?</p>\n<p><a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> </p>",
      "rawMarkdown": "As what I observe, we cannot get `prior_question_elapsed_time` from `timestamp`. Looking at an example here:\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1829450%2F9fef4772c5eea08940648fa0b3b48f5c%2F1.png?generation=1602948382755051&alt=media)\n\nWe see that the number in the red box is not by any way equal to the subtraction of the numbers in the blue box. So how was it generated?\n\n@sohier",
      "votes": null
    },
    {
      "id": "1052345",
      "postDate": "10/17/2020 16:09:06",
      "content": "<p>They are not in the same time units AFAIK, prior_elapsed_time is capped to 5 mins i.e. 300 secs tops.</p>\n<p>Wow, you climbed the LB in one shot! (with lot of efforts obviously); Good luck, looking forward to learn! Just curious, can you suggest some pointers? Ty!</p>",
      "rawMarkdown": "They are not in the same time units AFAIK, prior_elapsed_time is capped to 5 mins i.e. 300 secs tops.\n\nWow, you climbed the LB in one shot! (with lot of efforts obviously); Good luck, looking forward to learn! Just curious, can you suggest some pointers? Ty!",
      "votes": null
    },
    {
      "id": "1052360",
      "postDate": "10/17/2020 16:25:24",
      "content": "<p>See <a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/189351\" target=\"_blank\">this discussion</a>. <code>timestamp</code> is when the activity is finished, and <code>prior_question_elapsed_time</code> is how long it took (average over bundle if there are multiple questions). There's no column for when the user started the question, but you can get it by subtracting <code>prior_question_elapsed_time</code> from <code>timestamp</code>.</p>",
      "rawMarkdown": "See [this discussion](https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/189351). `timestamp` is when the activity is finished, and `prior_question_elapsed_time` is how long it took (average over bundle if there are multiple questions). There's no column for when the user started the question, but you can get it by subtracting `prior_question_elapsed_time` from `timestamp`.",
      "votes": null
    },
    {
      "id": "1052594",
      "postDate": "10/18/2020 01:34:18",
      "content": "<p>Thanks Ming. That topic answered this topic's question.</p>",
      "rawMarkdown": "Thanks Ming. That topic answered this topic's question.",
      "votes": null
    },
    {
      "id": "1052595",
      "postDate": "10/18/2020 01:35:20",
      "content": "<p>Thanks. I will share at a suitable time.</p>",
      "rawMarkdown": "Thanks. I will share at a suitable time.",
      "votes": null
    },
    {
      "id": "1053734",
      "postDate": "10/19/2020 09:41:59",
      "content": "<p>I agree with your defintion of timestamp and prior_question_elpsed_time. However from my understanding subtracting them does not necessarily return when the user started the question. If it was true it means that users answer all the questions without taking a break</p>\n<p>edit: maybe I was wrong.  You can get it by subtracting timestamp at time n by prior_question_elpsed_time at time n+1, could you confirm it ?</p>\n<p>Are you guys using time features for reaching these LB scores ?</p>",
      "rawMarkdown": "I agree with your defintion of timestamp and prior_question_elpsed_time. However from my understanding subtracting them does not necessarily return when the user started the question. If it was true it means that users answer all the questions without taking a break\n\nedit: maybe I was wrong.  You can get it by subtracting timestamp at time n by prior_question_elpsed_time at time n+1, could you confirm it ?\n\nAre you guys using time features for reaching these LB scores ?",
      "votes": null
    },
    {
      "id": "1126932",
      "postDate": "12/26/2020 05:14:35",
      "content": "<p><a href=\"https://www.kaggle.com/Khahuras\" target=\"_blank\">@Khahuras</a> how you taking prior elapsed time ,going with default sequence of timestamp ,that is assuming any row of prior elapsed time refers to task container id of previous  row sorted by timestamp  ?</p>",
      "rawMarkdown": "Khahuras how you taking prior elapsed time ,going with default sequence of timestamp ,that is assuming any row of prior elapsed time refers to task container id of previous  row sorted by timestamp  ?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1052345,
      "author_name": "adityaecdrid",
      "author_url": "",
      "post_date": "10/17/2020 16:09:06",
      "content": "<p>They are not in the same time units AFAIK, prior_elapsed_time is capped to 5 mins i.e. 300 secs tops.</p>\n<p>Wow, you climbed the LB in one shot! (with lot of efforts obviously); Good luck, looking forward to learn! Just curious, can you suggest some pointers? Ty!</p>",
      "votes": null,
      "replies": [
        {
          "id": 1052595,
          "author_name": "khahuras",
          "author_url": "",
          "post_date": "10/18/2020 01:35:20",
          "content": "<p>Thanks. I will share at a suitable time.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1052360,
      "author_name": "mingpan07",
      "author_url": "",
      "post_date": "10/17/2020 16:25:24",
      "content": "<p>See <a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/189351\" target=\"_blank\">this discussion</a>. <code>timestamp</code> is when the activity is finished, and <code>prior_question_elapsed_time</code> is how long it took (average over bundle if there are multiple questions). There's no column for when the user started the question, but you can get it by subtracting <code>prior_question_elapsed_time</code> from <code>timestamp</code>.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1052594,
          "author_name": "khahuras",
          "author_url": "",
          "post_date": "10/18/2020 01:34:18",
          "content": "<p>Thanks Ming. That topic answered this topic's question.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1053734,
          "author_name": "alexj21",
          "author_url": "",
          "post_date": "10/19/2020 09:41:59",
          "content": "<p>I agree with your defintion of timestamp and prior_question_elpsed_time. However from my understanding subtracting them does not necessarily return when the user started the question. If it was true it means that users answer all the questions without taking a break</p>\n<p>edit: maybe I was wrong.  You can get it by subtracting timestamp at time n by prior_question_elpsed_time at time n+1, could you confirm it ?</p>\n<p>Are you guys using time features for reaching these LB scores ?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1126932,
      "author_name": "jaideepvalani",
      "author_url": "",
      "post_date": "12/26/2020 05:14:35",
      "content": "<p><a href=\"https://www.kaggle.com/Khahuras\" target=\"_blank\">@Khahuras</a> how you taking prior elapsed time ,going with default sequence of timestamp ,that is assuming any row of prior elapsed time refers to task container id of previous  row sorted by timestamp  ?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1052308": "As what I observe, we cannot get `prior_question_elapsed_time` from `timestamp`. Looking at an example here:\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F1829450%2F9fef4772c5eea08940648fa0b3b48f5c%2F1.png?generation=1602948382755051&alt=media)\n\nWe see that the number in the red box is not by any way equal to the subtraction of the numbers in the blue box. So how was it generated?\n\n@sohier",
    "1052345": "They are not in the same time units AFAIK, prior_elapsed_time is capped to 5 mins i.e. 300 secs tops.\n\nWow, you climbed the LB in one shot! (with lot of efforts obviously); Good luck, looking forward to learn! Just curious, can you suggest some pointers? Ty!",
    "1052360": "See [this discussion](https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/189351). `timestamp` is when the activity is finished, and `prior_question_elapsed_time` is how long it took (average over bundle if there are multiple questions). There's no column for when the user started the question, but you can get it by subtracting `prior_question_elapsed_time` from `timestamp`.",
    "1052594": "Thanks Ming. That topic answered this topic's question.",
    "1052595": "Thanks. I will share at a suitable time.",
    "1053734": "I agree with your defintion of timestamp and prior_question_elpsed_time. However from my understanding subtracting them does not necessarily return when the user started the question. If it was true it means that users answer all the questions without taking a break\n\nedit: maybe I was wrong.  You can get it by subtracting timestamp at time n by prior_question_elpsed_time at time n+1, could you confirm it ?\n\nAre you guys using time features for reaching these LB scores ?",
    "1126932": "Khahuras how you taking prior elapsed time ,going with default sequence of timestamp ,that is assuming any row of prior elapsed time refers to task container id of previous  row sorted by timestamp  ?"
  },
  "source": "meta"
}