{
  "id": 22663,
  "title": "Facebook Results Dataset",
  "url": "/competitions/facebook-v-predicting-check-ins/discussion/22663",
  "author_name": "",
  "post_date": "2016-08-03T08:36:54.133Z",
  "votes": 6,
  "comment_count": 5,
  "views": 1239,
  "content": "<p>I've just released <a href=\"https://www.kaggle.com/facebook/facebook-v-results\">a dataset containing the results of this Facebook competition</a>. It includes:</p>\n\n<ul>\n<li>the solution file</li>\n<li>the final submission for each of the top 20 teams</li>\n<li>final submissions for a small number of teams farther down the leaderboard</li>\n<li>public/private scores for all submissions made during the competition</li>\n</ul>\n\n<p>A couple examples of what you can do with this dataset:</p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams\">Ensemble the top team's final submissions</a></p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams\"><img src=\"https://www.kaggle.io/svf/320079/dc302b86d09f5654a8ef5cf8d2157b1a/ensemble.png\" alt=\"ensemble\" title></a></p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement\">Calculate the agreement between top submissions</a></p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement\"><img src=\"https://www.kaggle.io/svf/320080/4c9b6e6f4c979d0000d2fbe1440ecc81/ranked_agreement.png\" alt=\"agreement\" title></a></p>",
  "messages": [
    {
      "id": "129992",
      "postDate": "08/03/2016 08:36:54",
      "content": "<p>I've just released <a href=\"https://www.kaggle.com/facebook/facebook-v-results\">a dataset containing the results of this Facebook competition</a>. It includes:</p>\n\n<ul>\n<li>the solution file</li>\n<li>the final submission for each of the top 20 teams</li>\n<li>final submissions for a small number of teams farther down the leaderboard</li>\n<li>public/private scores for all submissions made during the competition</li>\n</ul>\n\n<p>A couple examples of what you can do with this dataset:</p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams\">Ensemble the top team's final submissions</a></p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams\"><img src=\"https://www.kaggle.io/svf/320079/dc302b86d09f5654a8ef5cf8d2157b1a/ensemble.png\" alt=\"ensemble\" title></a></p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement\">Calculate the agreement between top submissions</a></p>\n\n<p><a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement\"><img src=\"https://www.kaggle.io/svf/320080/4c9b6e6f4c979d0000d2fbe1440ecc81/ranked_agreement.png\" alt=\"agreement\" title></a></p>",
      "rawMarkdown": "I've just released [a dataset containing the results of this Facebook competition](https://www.kaggle.com/facebook/facebook-v-results). It includes:\r\n\r\n - the solution file\r\n - the final submission for each of the top 20 teams\r\n - final submissions for a small number of teams farther down the leaderboard\r\n - public/private scores for all submissions made during the competition\r\n\r\nA couple examples of what you can do with this dataset:\r\n\r\n[Ensemble the top team's final submissions](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams)\r\n\r\n[![ensemble](https://www.kaggle.io/svf/320079/dc302b86d09f5654a8ef5cf8d2157b1a/ensemble.png)](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams)\r\n\r\n[Calculate the agreement between top submissions](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement)\r\n\r\n[![agreement](https://www.kaggle.io/svf/320080/4c9b6e6f4c979d0000d2fbe1440ecc81/ranked_agreement.png)](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement)",
      "votes": null
    },
    {
      "id": "130172",
      "postDate": "08/04/2016 14:09:35",
      "content": "<p>Hi Ben,</p>\n\n<p>What tools do you recommend for extracting the original csv's from the hd5 file? I tried using <a href=\"https://apps.ubuntu.com/cat/applications/precise/hdfview/\">hdfview</a> .  I found something strange.</p>\n\n<p>The Rank1 values did not match the values that Tom <a href=\"https://www.kaggle.com/c/facebook-v-predicting-check-ins/forums/t/22078/solution-sharing/128239#post128239\">made publicly available</a>.  When I submitted my own conversion from Rank1, the results were low (around 0.23061 on public LB).  I scored my converted csv with my export from Solution.txt and got the score I expected.</p>\n\n<p>I'm new to hd5 so perhaps, I am doing something obviously wrong in using hdfview to export a text file.</p>\n\n<p>Thanks,</p>\n\n<p>-Larry</p>\n\n<hr>\n\n<p>Edit 2:  Ben, I got the same result using h5py similar to the code you <a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams\">provided</a> to do the ensemble.   </p>\n\n<p>Here is the code that I used.  When I submitted the resultant csv, I again got the same lower than expected LB score.</p>\n\n<pre><code>import h5py\nimport numpy as np\nimport pandas as pd\n\n\nwith h5py.File(&quot;top_submissions.h5&quot;,&quot;r&quot;) as f:\n    submission = f['Rank1'][:]\n    df_submission = pd.DataFrame(submission)\n    df_submission.columns = ['predict1','predict2','predict3']\n    df_submission['place_id'] = df_submission.predict1.map(str)+&quot; &quot;+df_submission.predict2.map(str)+&quot; &quot;+df_submission.predict3.map(str)\n    df_submission = df_submission[['place_id']]\n    df_submission.reset_index(drop=True,inplace=True)\n    df_submission.index.rename('row_id',inplace=True)\n    df_submission.to_csv(&quot;Rank1_test.csv&quot;)\n</code></pre>",
      "rawMarkdown": "Hi Ben,\r\n\r\nWhat tools do you recommend for extracting the original csv's from the hd5 file? I tried using [hdfview][1] .  I found something strange.\r\n\r\nThe Rank1 values did not match the values that Tom [made publicly available][2].  When I submitted my own conversion from Rank1, the results were low (around 0.23061 on public LB).  I scored my converted csv with my export from Solution.txt and got the score I expected.\r\n\r\nI'm new to hd5 so perhaps, I am doing something obviously wrong in using hdfview to export a text file.\r\n\r\nThanks,\r\n\r\n-Larry\r\n\r\n------\r\n\r\nEdit 2:  Ben, I got the same result using h5py similar to the code you [provided][3] to do the ensemble.   \r\n\r\nHere is the code that I used.  When I submitted the resultant csv, I again got the same lower than expected LB score.\r\n\r\n    import h5py\r\n    import numpy as np\r\n    import pandas as pd\r\n    \r\n    \r\n    with h5py.File(\"top_submissions.h5\",\"r\") as f:\r\n        submission = f['Rank1'][:]\r\n        df_submission = pd.DataFrame(submission)\r\n        df_submission.columns = ['predict1','predict2','predict3']\r\n        df_submission['place_id'] = df_submission.predict1.map(str)+\" \"+df_submission.predict2.map(str)+\" \"+df_submission.predict3.map(str)\r\n        df_submission = df_submission[['place_id']]\r\n        df_submission.reset_index(drop=True,inplace=True)\r\n        df_submission.index.rename('row_id',inplace=True)\r\n        df_submission.to_csv(\"Rank1_test.csv\")\r\n\r\n\r\n\r\n\r\n\r\n  [1]: https://apps.ubuntu.com/cat/applications/precise/hdfview/\r\n  [2]: https://www.kaggle.com/c/facebook-v-predicting-check-ins/forums/t/22078/solution-sharing/128239#post128239\r\n  [3]: https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams",
      "votes": null
    },
    {
      "id": "130311",
      "postDate": "08/05/2016 14:02:11",
      "content": "<p>Thanks a lot.</p>\n\n<p>I will spend time to study.</p>",
      "rawMarkdown": "Thanks a lot.\r\n\r\nI will spend time to study.",
      "votes": null
    },
    {
      "id": "130362",
      "postDate": "08/06/2016 06:49:02",
      "content": "<p>I think there is some problem in solution file as well. Shouldn't it give 1.00 on lb? When I do this:</p>\n\n<pre><code>with h5py.File(&quot;top_submissions.h5&quot;,&quot;r&quot;) as f:\n    s= f[&quot;Solution&quot;][:]\n    df = pd.DataFrame(s)\n    df.columns = [&quot;row_id&quot;,&quot;place_id&quot;,&quot;priv/publ&quot;]\n    df[[&quot;row_id&quot;,&quot;place_id&quot;]].to_csv(&quot;sol.csv&quot;,index=False)\n</code></pre>\n\n<p>and then submit sol.csv, I get only 0.36982. Am I doing something wrong?</p>",
      "rawMarkdown": "I think there is some problem in solution file as well. Shouldn't it give 1.00 on lb? When I do this:\r\n\r\n    with h5py.File(\"top_submissions.h5\",\"r\") as f:\r\n        s= f[\"Solution\"][:]\r\n        df = pd.DataFrame(s)\r\n        df.columns = [\"row_id\",\"place_id\",\"priv/publ\"]\r\n        df[[\"row_id\",\"place_id\"]].to_csv(\"sol.csv\",index=False)\r\n\r\nand then submit sol.csv, I get only 0.36982. Am I doing something wrong?",
      "votes": null
    },
    {
      "id": "130775",
      "postDate": "08/10/2016 08:44:10",
      "content": "<p>Really cool post-competition analysis and data set. </p>\n\n<p>I suggest notifying all competition participants over email, as otherwise +95% of them will probably never spot this. </p>\n\n<p>I guess some people might find the release of submission metadata slightly violating their privacy, as it enables competitors to data mine their strategies for parameter tuning and ensembling, as well as the timing for entering each stage.</p>",
      "rawMarkdown": "Really cool post-competition analysis and data set. \r\n\r\nI suggest notifying all competition participants over email, as otherwise +95% of them will probably never spot this. \r\n\r\nI guess some people might find the release of submission metadata slightly violating their privacy, as it enables competitors to data mine their strategies for parameter tuning and ensembling, as well as the timing for entering each stage.",
      "votes": null
    },
    {
      "id": "135596",
      "postDate": "09/15/2016 06:01:49",
      "content": "<p>There are so many people commenting here. Anyone please tell me how to get the proper solution dataset as the method I mentioned earlier has something wrong.</p>",
      "rawMarkdown": "There are so many people commenting here. Anyone please tell me how to get the proper solution dataset as the method I mentioned earlier has something wrong.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 130172,
      "author_name": "larryfreeman",
      "author_url": "",
      "post_date": "08/04/2016 14:09:35",
      "content": "<p>Hi Ben,</p>\n\n<p>What tools do you recommend for extracting the original csv's from the hd5 file? I tried using <a href=\"https://apps.ubuntu.com/cat/applications/precise/hdfview/\">hdfview</a> .  I found something strange.</p>\n\n<p>The Rank1 values did not match the values that Tom <a href=\"https://www.kaggle.com/c/facebook-v-predicting-check-ins/forums/t/22078/solution-sharing/128239#post128239\">made publicly available</a>.  When I submitted my own conversion from Rank1, the results were low (around 0.23061 on public LB).  I scored my converted csv with my export from Solution.txt and got the score I expected.</p>\n\n<p>I'm new to hd5 so perhaps, I am doing something obviously wrong in using hdfview to export a text file.</p>\n\n<p>Thanks,</p>\n\n<p>-Larry</p>\n\n<hr>\n\n<p>Edit 2:  Ben, I got the same result using h5py similar to the code you <a href=\"https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams\">provided</a> to do the ensemble.   </p>\n\n<p>Here is the code that I used.  When I submitted the resultant csv, I again got the same lower than expected LB score.</p>\n\n<pre><code>import h5py\nimport numpy as np\nimport pandas as pd\n\n\nwith h5py.File(&quot;top_submissions.h5&quot;,&quot;r&quot;) as f:\n    submission = f['Rank1'][:]\n    df_submission = pd.DataFrame(submission)\n    df_submission.columns = ['predict1','predict2','predict3']\n    df_submission['place_id'] = df_submission.predict1.map(str)+&quot; &quot;+df_submission.predict2.map(str)+&quot; &quot;+df_submission.predict3.map(str)\n    df_submission = df_submission[['place_id']]\n    df_submission.reset_index(drop=True,inplace=True)\n    df_submission.index.rename('row_id',inplace=True)\n    df_submission.to_csv(&quot;Rank1_test.csv&quot;)\n</code></pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 130311,
      "author_name": "wowfattie",
      "author_url": "",
      "post_date": "08/05/2016 14:02:11",
      "content": "<p>Thanks a lot.</p>\n\n<p>I will spend time to study.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 130362,
      "author_name": "chopra",
      "author_url": "",
      "post_date": "08/06/2016 06:49:02",
      "content": "<p>I think there is some problem in solution file as well. Shouldn't it give 1.00 on lb? When I do this:</p>\n\n<pre><code>with h5py.File(&quot;top_submissions.h5&quot;,&quot;r&quot;) as f:\n    s= f[&quot;Solution&quot;][:]\n    df = pd.DataFrame(s)\n    df.columns = [&quot;row_id&quot;,&quot;place_id&quot;,&quot;priv/publ&quot;]\n    df[[&quot;row_id&quot;,&quot;place_id&quot;]].to_csv(&quot;sol.csv&quot;,index=False)\n</code></pre>\n\n<p>and then submit sol.csv, I get only 0.36982. Am I doing something wrong?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 130775,
      "author_name": "frederik",
      "author_url": "",
      "post_date": "08/10/2016 08:44:10",
      "content": "<p>Really cool post-competition analysis and data set. </p>\n\n<p>I suggest notifying all competition participants over email, as otherwise +95% of them will probably never spot this. </p>\n\n<p>I guess some people might find the release of submission metadata slightly violating their privacy, as it enables competitors to data mine their strategies for parameter tuning and ensembling, as well as the timing for entering each stage.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 135596,
      "author_name": "chopra",
      "author_url": "",
      "post_date": "09/15/2016 06:01:49",
      "content": "<p>There are so many people commenting here. Anyone please tell me how to get the proper solution dataset as the method I mentioned earlier has something wrong.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "129992": "I've just released [a dataset containing the results of this Facebook competition](https://www.kaggle.com/facebook/facebook-v-results). It includes:\r\n\r\n - the solution file\r\n - the final submission for each of the top 20 teams\r\n - final submissions for a small number of teams farther down the leaderboard\r\n - public/private scores for all submissions made during the competition\r\n\r\nA couple examples of what you can do with this dataset:\r\n\r\n[Ensemble the top team's final submissions](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams)\r\n\r\n[![ensemble](https://www.kaggle.io/svf/320079/dc302b86d09f5654a8ef5cf8d2157b1a/ensemble.png)](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams)\r\n\r\n[Calculate the agreement between top submissions](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement)\r\n\r\n[![agreement](https://www.kaggle.io/svf/320080/4c9b6e6f4c979d0000d2fbe1440ecc81/ranked_agreement.png)](https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/top-submission-agreement)",
    "130172": "Hi Ben,\r\n\r\nWhat tools do you recommend for extracting the original csv's from the hd5 file? I tried using [hdfview][1] .  I found something strange.\r\n\r\nThe Rank1 values did not match the values that Tom [made publicly available][2].  When I submitted my own conversion from Rank1, the results were low (around 0.23061 on public LB).  I scored my converted csv with my export from Solution.txt and got the score I expected.\r\n\r\nI'm new to hd5 so perhaps, I am doing something obviously wrong in using hdfview to export a text file.\r\n\r\nThanks,\r\n\r\n-Larry\r\n\r\n------\r\n\r\nEdit 2:  Ben, I got the same result using h5py similar to the code you [provided][3] to do the ensemble.   \r\n\r\nHere is the code that I used.  When I submitted the resultant csv, I again got the same lower than expected LB score.\r\n\r\n    import h5py\r\n    import numpy as np\r\n    import pandas as pd\r\n    \r\n    \r\n    with h5py.File(\"top_submissions.h5\",\"r\") as f:\r\n        submission = f['Rank1'][:]\r\n        df_submission = pd.DataFrame(submission)\r\n        df_submission.columns = ['predict1','predict2','predict3']\r\n        df_submission['place_id'] = df_submission.predict1.map(str)+\" \"+df_submission.predict2.map(str)+\" \"+df_submission.predict3.map(str)\r\n        df_submission = df_submission[['place_id']]\r\n        df_submission.reset_index(drop=True,inplace=True)\r\n        df_submission.index.rename('row_id',inplace=True)\r\n        df_submission.to_csv(\"Rank1_test.csv\")\r\n\r\n\r\n\r\n\r\n\r\n  [1]: https://apps.ubuntu.com/cat/applications/precise/hdfview/\r\n  [2]: https://www.kaggle.com/c/facebook-v-predicting-check-ins/forums/t/22078/solution-sharing/128239#post128239\r\n  [3]: https://www.kaggle.com/benhamner/d/facebook/facebook-v-results/ensembling-the-top-teams",
    "130311": "Thanks a lot.\r\n\r\nI will spend time to study.",
    "130362": "I think there is some problem in solution file as well. Shouldn't it give 1.00 on lb? When I do this:\r\n\r\n    with h5py.File(\"top_submissions.h5\",\"r\") as f:\r\n        s= f[\"Solution\"][:]\r\n        df = pd.DataFrame(s)\r\n        df.columns = [\"row_id\",\"place_id\",\"priv/publ\"]\r\n        df[[\"row_id\",\"place_id\"]].to_csv(\"sol.csv\",index=False)\r\n\r\nand then submit sol.csv, I get only 0.36982. Am I doing something wrong?",
    "130775": "Really cool post-competition analysis and data set. \r\n\r\nI suggest notifying all competition participants over email, as otherwise +95% of them will probably never spot this. \r\n\r\nI guess some people might find the release of submission metadata slightly violating their privacy, as it enables competitors to data mine their strategies for parameter tuning and ensembling, as well as the timing for entering each stage.",
    "135596": "There are so many people commenting here. Anyone please tell me how to get the proper solution dataset as the method I mentioned earlier has something wrong."
  },
  "source": "meta"
}