{
  "id": 203331,
  "title": "api - how to use",
  "url": "/competitions/riiid-test-answer-prediction/discussion/203331",
  "author_name": "",
  "post_date": "2020-12-14T20:04:38.608584700Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi,</p>\n<p>Not sure how to use the api and what does it do?<br>\nso something like<br>\n   env = riiideducation.make_env()<br>\n    env.predict(test_df.loc[test_df['content_type_id'] == 0, ['row_id', 'answered_correctly']])</p>\n<p>but how do we know what format predict should be and what does the api do?</p>",
  "messages": [
    {
      "id": "1112683",
      "postDate": "12/14/2020 20:04:38",
      "content": "<p>Hi,</p>\n<p>Not sure how to use the api and what does it do?<br>\nso something like<br>\n   env = riiideducation.make_env()<br>\n    env.predict(test_df.loc[test_df['content_type_id'] == 0, ['row_id', 'answered_correctly']])</p>\n<p>but how do we know what format predict should be and what does the api do?</p>",
      "rawMarkdown": "Hi,\n\nNot sure how to use the api and what does it do?\nso something like\n   env = riiideducation.make_env()\n    env.predict(test_df.loc[test_df['content_type_id'] == 0, ['row_id', 'answered_correctly']])\n\nbut how do we know what format predict should be and what does the api do?",
      "votes": null
    },
    {
      "id": "1112700",
      "postDate": "12/14/2020 20:28:33",
      "content": "<p>Look at the documentation on <a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/data\" target=\"_blank\">the Data page</a> and the <a href=\"https://www.kaggle.com/sohier/competition-api-detailed-introduction\" target=\"_blank\">starter notebook</a> in particular.</p>",
      "rawMarkdown": "Look at the documentation on [the Data page](https://www.kaggle.com/c/riiid-test-answer-prediction/data) and the [starter notebook](https://www.kaggle.com/sohier/competition-api-detailed-introduction) in particular.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1112700,
      "author_name": "christoffer",
      "author_url": "",
      "post_date": "12/14/2020 20:28:33",
      "content": "<p>Look at the documentation on <a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/data\" target=\"_blank\">the Data page</a> and the <a href=\"https://www.kaggle.com/sohier/competition-api-detailed-introduction\" target=\"_blank\">starter notebook</a> in particular.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1112683": "Hi,\n\nNot sure how to use the api and what does it do?\nso something like\n   env = riiideducation.make_env()\n    env.predict(test_df.loc[test_df['content_type_id'] == 0, ['row_id', 'answered_correctly']])\n\nbut how do we know what format predict should be and what does the api do?",
    "1112700": "Look at the documentation on [the Data page](https://www.kaggle.com/c/riiid-test-answer-prediction/data) and the [starter notebook](https://www.kaggle.com/sohier/competition-api-detailed-introduction) in particular."
  },
  "source": "meta"
}