{
  "id": 5560,
  "title": "Plot function in Python + on/off hand-labeling",
  "url": "/competitions/belkin-energy-disaggregation-competition/discussion/5560",
  "author_name": "Jacopo Hirschstein",
  "post_date": "2013-08-27T13:14:49.343000",
  "votes": 1,
  "comment_count": 0,
  "views": 783,
  "content": "<p>Hi everybody,</p>\n<p>My team-mate Daniel and I have been playing around a little with this competition. We wanted to make our preliminary work available, so here's some code.</p>\n<p>The code is written in Python and consists in two files.</p>\n<ul>\n<li><em>&nbsp;'plot.py'</em> plots curves and spectrogram with matplotlib. It picks up data from the .mat files. To run this, just enter 'python plot.py path_to_data path_to_tagging_info'. For example:</li>\n</ul>\n<p style=\"padding-left: 30px\"><code> 'python plot.py H3/Tagged_Training_07_30_1343631601.mat H3/AllTaggingInfo.mat'.</code></p>\n<ul>\n<li>'<em>labels.py</em>' is the result of a hand-labeling exercise of the interpreted on/off of the appliances for H2, H3, H4. If you want to use this, just uncomment the related code on '<em>plot.py</em>' and add '<em>manual_tagdata_pos</em>' as an argument to the '<em>plot</em>' function. Please note that the labels' work still need checking and integrations, but it can be a good base if you want to pursue the hand-labeling way.</li>\n</ul>\n<p>Happy plotting and good luck!</p>\n<p>Jacopo</p>",
  "messages": [
    {
      "id": 29563,
      "postDate": "2013-08-27T13:14:49.343Z",
      "content": "<p>Hi everybody,</p>\n<p>My team-mate Daniel and I have been playing around a little with this competition. We wanted to make our preliminary work available, so here's some code.</p>\n<p>The code is written in Python and consists in two files.</p>\n<ul>\n<li><em>&nbsp;'plot.py'</em> plots curves and spectrogram with matplotlib. It picks up data from the .mat files. To run this, just enter 'python plot.py path_to_data path_to_tagging_info'. For example:</li>\n</ul>\n<p style=\"padding-left: 30px\"><code> 'python plot.py H3/Tagged_Training_07_30_1343631601.mat H3/AllTaggingInfo.mat'.</code></p>\n<ul>\n<li>'<em>labels.py</em>' is the result of a hand-labeling exercise of the interpreted on/off of the appliances for H2, H3, H4. If you want to use this, just uncomment the related code on '<em>plot.py</em>' and add '<em>manual_tagdata_pos</em>' as an argument to the '<em>plot</em>' function. Please note that the labels' work still need checking and integrations, but it can be a good base if you want to pursue the hand-labeling way.</li>\n</ul>\n<p>Happy plotting and good luck!</p>\n<p>Jacopo</p>",
      "votes": 1
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "29563": ""
  }
}