{
  "id": 1714,
  "title": "bug in python scoreKDD",
  "url": "/competitions/kddcup2012-track2/discussion/1714",
  "author_name": "",
  "post_date": "2012-04-12T12:16:44.403Z",
  "votes": null,
  "comment_count": 2,
  "views": 2939,
  "content": "<pre>Traceback (most recent call last):<br>  File &quot;scoreKDD.py&quot;, line 238, in <br>    main()<br>  File &quot;scoreKDD.py&quot;, line 230, in main<br>    auc = scoreClickAUC(num_clicks, num_impressions, predicted_ctr)<br>  File &quot;scoreKDD.py&quot;, line 122, in scoreClickAUC<br>    auc = auc_temp / (click_sum * no_click_sum)<br>ZeroDivisionError: float division by zero</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>when all clicks equals to 0</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Traceback (most recent call last):<br>  File &quot;scoreKDD.py&quot;, line 238, in &lt;module&gt;<br>    main()<br>  File &quot;scoreKDD.py&quot;, line 230, in main<br>    auc = scoreClickAUC(num_clicks, num_impressions, predicted_ctr)<br>  File &quot;scoreKDD.py&quot;, line 101, in scoreClickAUC<br>    reverse=True)<br>MemoryError</pre>\r\n<pre>almost 2gb allocated but still some memory free, why this cost so many memory?</pre>",
  "messages": [
    {
      "id": "10082",
      "postDate": "04/12/2012 12:16:44",
      "content": "<pre>Traceback (most recent call last):<br>  File &quot;scoreKDD.py&quot;, line 238, in <br>    main()<br>  File &quot;scoreKDD.py&quot;, line 230, in main<br>    auc = scoreClickAUC(num_clicks, num_impressions, predicted_ctr)<br>  File &quot;scoreKDD.py&quot;, line 122, in scoreClickAUC<br>    auc = auc_temp / (click_sum * no_click_sum)<br>ZeroDivisionError: float division by zero</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>when all clicks equals to 0</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Traceback (most recent call last):<br>  File &quot;scoreKDD.py&quot;, line 238, in &lt;module&gt;<br>    main()<br>  File &quot;scoreKDD.py&quot;, line 230, in main<br>    auc = scoreClickAUC(num_clicks, num_impressions, predicted_ctr)<br>  File &quot;scoreKDD.py&quot;, line 101, in scoreClickAUC<br>    reverse=True)<br>MemoryError</pre>\r\n<pre>almost 2gb allocated but still some memory free, why this cost so many memory?</pre>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "10111",
      "postDate": "04/13/2012 02:04:19",
      "content": "<p>Evaluation metric didn't check for that edge case (if all clicks are 0, then there is no competition - all click-through rates are 0, and the AUC is degenerate).</p>\r\n<p>As far as the memory usage goes, how big of a dataset were you putting into it? The entire training set?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "10119",
      "postDate": "04/13/2012 19:10:44",
      "content": "<p>entire test set</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 10111,
      "author_name": "benhamner",
      "author_url": "",
      "post_date": "04/13/2012 02:04:19",
      "content": "<p>Evaluation metric didn't check for that edge case (if all clicks are 0, then there is no competition - all click-through rates are 0, and the AUC is degenerate).</p>\r\n<p>As far as the memory usage goes, how big of a dataset were you putting into it? The entire training set?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 10119,
      "author_name": "kurak38",
      "author_url": "",
      "post_date": "04/13/2012 19:10:44",
      "content": "<p>entire test set</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "10082": "",
    "10111": "",
    "10119": ""
  },
  "source": "meta"
}