{
  "id": 448771,
  "title": "How to find the score",
  "url": "/competitions/child-mind-institute-detect-sleep-states/discussion/448771",
  "author_name": "Surabhi mv",
  "post_date": "2023-10-21T06:59:28.851000",
  "votes": 1,
  "comment_count": 0,
  "views": 0,
  "content": "<p>Hi,<br>\nI am stuck on this code can anyone help me understand how to find the score<br>\ntest.loc[test['prediction']==0, 'probability'] = 1-test.loc[test['prediction']==0, 'probability']<br>\ntest['score'] = test['probability'].rolling(60<em>12</em>5, center=True, min_periods=10).mean().bfill().ffill()</p>",
  "messages": [
    {
      "id": 2490889,
      "postDate": "2023-10-21T06:59:28.853Z",
      "content": "<p>Hi,<br>\nI am stuck on this code can anyone help me understand how to find the score<br>\ntest.loc[test['prediction']==0, 'probability'] = 1-test.loc[test['prediction']==0, 'probability']<br>\ntest['score'] = test['probability'].rolling(60<em>12</em>5, center=True, min_periods=10).mean().bfill().ffill()</p>",
      "rawMarkdown": "Hi,\nI am stuck on this code can anyone help me understand how to find the score\ntest.loc[test['prediction']==0, 'probability'] = 1-test.loc[test['prediction']==0, 'probability']\ntest['score'] = test['probability'].rolling(60*12*5, center=True, min_periods=10).mean().bfill().ffill()",
      "votes": 1
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "2490889": "Hi,\nI am stuck on this code can anyone help me understand how to find the score\ntest.loc[test['prediction']==0, 'probability'] = 1-test.loc[test['prediction']==0, 'probability']\ntest['score'] = test['probability'].rolling(60*12*5, center=True, min_periods=10).mean().bfill().ffill()"
  }
}