{
  "id": 150268,
  "title": "Index Error in weighted AUC?",
  "url": "/competitions/alaska2-image-steganalysis/discussion/150268",
  "author_name": "",
  "post_date": "2020-05-11T17:07:59.159699100Z",
  "votes": 3,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi, I have tried using the metric as implemented <a href=\"https://www.kaggle.com/anokas/weighted-auc-metric-updated\">here</a> but I keep getting the error</p>\n\n<p><code>IndexError: index -1 is out of bounds for axis 0 with size 0</code> </p>\n\n<p>in line </p>\n\n<p><code>x_padding = np.linspace(fpr[mask][-1], 1, 100)</code></p>\n\n<p>Has anybody else had the same problem? I'm not sure how to fix it and what might cause it.</p>",
  "messages": [
    {
      "id": "842865",
      "postDate": "05/11/2020 17:07:59",
      "content": "<p>Hi, I have tried using the metric as implemented <a href=\"https://www.kaggle.com/anokas/weighted-auc-metric-updated\">here</a> but I keep getting the error</p>\n\n<p><code>IndexError: index -1 is out of bounds for axis 0 with size 0</code> </p>\n\n<p>in line </p>\n\n<p><code>x_padding = np.linspace(fpr[mask][-1], 1, 100)</code></p>\n\n<p>Has anybody else had the same problem? I'm not sure how to fix it and what might cause it.</p>",
      "rawMarkdown": "Hi, I have tried using the metric as implemented [here](https://www.kaggle.com/anokas/weighted-auc-metric-updated) but I keep getting the error\n\n```IndexError: index -1 is out of bounds for axis 0 with size 0``` \n\nin line \n\n```x_padding = np.linspace(fpr[mask][-1], 1, 100)```\n\nHas anybody else had the same problem? I'm not sure how to fix it and what might cause it.",
      "votes": null
    },
    {
      "id": "844562",
      "postDate": "05/12/2020 17:18:32",
      "content": "<p>The solution was posted <a href=\"https://www.kaggle.com/anokas/weighted-auc-metric-updated/comments#844514\">here</a></p>",
      "rawMarkdown": "The solution was posted [here](https://www.kaggle.com/anokas/weighted-auc-metric-updated/comments#844514)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 844562,
      "author_name": "iilmer",
      "author_url": "",
      "post_date": "05/12/2020 17:18:32",
      "content": "<p>The solution was posted <a href=\"https://www.kaggle.com/anokas/weighted-auc-metric-updated/comments#844514\">here</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "842865": "Hi, I have tried using the metric as implemented [here](https://www.kaggle.com/anokas/weighted-auc-metric-updated) but I keep getting the error\n\n```IndexError: index -1 is out of bounds for axis 0 with size 0``` \n\nin line \n\n```x_padding = np.linspace(fpr[mask][-1], 1, 100)```\n\nHas anybody else had the same problem? I'm not sure how to fix it and what might cause it.",
    "844562": "The solution was posted [here](https://www.kaggle.com/anokas/weighted-auc-metric-updated/comments#844514)"
  },
  "source": "meta"
}