{
  "id": 36313,
  "title": "Starter Scripts",
  "url": "/competitions/passenger-screening-algorithm-challenge/discussion/36313",
  "author_name": "",
  "post_date": "2017-07-13T20:54:37.693287Z",
  "votes": 1,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Do we have any Starter Scripts that converts the these .aps into proper images to start working on modeling! (Im new to these kinda formats) </p>",
  "messages": [
    {
      "id": "203022",
      "postDate": "07/13/2017 20:54:37",
      "content": "<p>Do we have any Starter Scripts that converts the these .aps into proper images to start working on modeling! (Im new to these kinda formats) </p>",
      "rawMarkdown": "Do we have any Starter Scripts that converts the these .aps into proper images to start working on modeling! (Im new to these kinda formats)",
      "votes": null
    },
    {
      "id": "203346",
      "postDate": "07/14/2017 16:53:46",
      "content": "<p><a href=\"https://www.kaggle.com/wcukierski/reading-images\">https://www.kaggle.com/wcukierski/reading-images</a></p>",
      "rawMarkdown": "https://www.kaggle.com/wcukierski/reading-images",
      "votes": null
    },
    {
      "id": "204493",
      "postDate": "07/18/2017 18:38:30",
      "content": "<p>I've copy/pasted this and it doesn't work for me, it gives no output, but no errors though.</p>",
      "rawMarkdown": "I've copy/pasted this and it doesn't work for me, it gives no output, but no errors though.",
      "votes": null
    },
    {
      "id": "204528",
      "postDate": "07/18/2017 21:36:53",
      "content": "<p>You should use the read data function and get the 'data' variable.. as an array.  If you print 'data' in the plot function you can see the image matrix</p>",
      "rawMarkdown": "You should use the read data function and get the 'data' variable.. as an array.  If you print 'data' in the plot function you can see the image matrix",
      "votes": null
    },
    {
      "id": "205659",
      "postDate": "07/21/2017 20:25:26",
      "content": "<blockquote>\n  <blockquote>\n    <blockquote>\n      <p>ri.plot_image('stage1_aps/1960477b8082bfc2c5347c7aa7017369.aps')\n      \n      Exception in Tkinter callback\n      Traceback (most recent call last):\n        File \"/usr/lib/python3.5/idlelib/run.py\", line 119, in main\n          seq, request = rpc.request_queue.get(block=True, timeout=0.05)\n        File \"/usr/lib/python3.5/queue.py\", line 172, in get\n          raise Empty\n      queue.Empty</p>\n    </blockquote>\n  </blockquote>\n</blockquote>\n\n<p>During handling of the above exception, another exception occurred:</p>\n\n<p>Traceback (most recent call last):\n  File \"/usr/lib/python3.5/tkinter/<strong>init</strong>.py\", line 1553, in <strong>call</strong>\n    return self.func(*args)\n  File \"/usr/lib/python3.5/tkinter/<strong>init</strong>.py\", line 599, in callit\n    func(*args)\n  File \"/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py\", line 147, in _on_timer\n    TimerBase._on_timer(self)\n  File \"/usr/lib/python3/dist-packages/matplotlib/backend_bases.py\", line 1305, in _on_timer\n    ret = func(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 1021, in _step\n    still_going = Animation._step(self, *args)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 827, in _step\n    self._draw_next_frame(framedata, self._blit)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 845, in _draw_next_frame\n    self._pre_draw(framedata, blit)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 858, in _pre_draw\n    self._blit_clear(self._drawn_artists, self._blit_cache)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 898, in _blit_clear\n    a.figure.canvas.restore_region(bg_cache[a])\nKeyError: </p>\n\n<p>This is the error when calling the function with a stage1_aps file. I've searched in the web but I think it's not about Tkinter, what do you think? I understand we gotta make a loop calling this function with every file and storing the values in a Matrix, right?</p>",
      "rawMarkdown": "&gt;&gt;&gt; ri.plot_image('stage1_aps/1960477b8082bfc2c5347c7aa7017369.aps')",
      "votes": null
    },
    {
      "id": "210635",
      "postDate": "08/06/2017 11:03:29",
      "content": "<p>In my kernel posted <a href=\"https://www.kaggle.com/jbfarrar/exploratory-data-analysis-and-example-generation\">here</a>, I included candidate vertices to bound threat zones for the .aps data and approach for segmenting the data. Use if you find them helpful.</p>",
      "rawMarkdown": "In my kernel posted [here][1], I included candidate vertices to bound threat zones for the .aps data and approach for segmenting the data. Use if you find them helpful.\n\n\n  [1]: https://www.kaggle.com/jbfarrar/exploratory-data-analysis-and-example-generation",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 203346,
      "author_name": "ironbar",
      "author_url": "",
      "post_date": "07/14/2017 16:53:46",
      "content": "<p><a href=\"https://www.kaggle.com/wcukierski/reading-images\">https://www.kaggle.com/wcukierski/reading-images</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 204493,
          "author_name": "wtw369x",
          "author_url": "",
          "post_date": "07/18/2017 18:38:30",
          "content": "<p>I've copy/pasted this and it doesn't work for me, it gives no output, but no errors though.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 204528,
          "author_name": "vivek8943",
          "author_url": "",
          "post_date": "07/18/2017 21:36:53",
          "content": "<p>You should use the read data function and get the 'data' variable.. as an array.  If you print 'data' in the plot function you can see the image matrix</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 205659,
          "author_name": "wtw369x",
          "author_url": "",
          "post_date": "07/21/2017 20:25:26",
          "content": "<blockquote>\n  <blockquote>\n    <blockquote>\n      <p>ri.plot_image('stage1_aps/1960477b8082bfc2c5347c7aa7017369.aps')\n      \n      Exception in Tkinter callback\n      Traceback (most recent call last):\n        File \"/usr/lib/python3.5/idlelib/run.py\", line 119, in main\n          seq, request = rpc.request_queue.get(block=True, timeout=0.05)\n        File \"/usr/lib/python3.5/queue.py\", line 172, in get\n          raise Empty\n      queue.Empty</p>\n    </blockquote>\n  </blockquote>\n</blockquote>\n\n<p>During handling of the above exception, another exception occurred:</p>\n\n<p>Traceback (most recent call last):\n  File \"/usr/lib/python3.5/tkinter/<strong>init</strong>.py\", line 1553, in <strong>call</strong>\n    return self.func(*args)\n  File \"/usr/lib/python3.5/tkinter/<strong>init</strong>.py\", line 599, in callit\n    func(*args)\n  File \"/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py\", line 147, in _on_timer\n    TimerBase._on_timer(self)\n  File \"/usr/lib/python3/dist-packages/matplotlib/backend_bases.py\", line 1305, in _on_timer\n    ret = func(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 1021, in _step\n    still_going = Animation._step(self, *args)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 827, in _step\n    self._draw_next_frame(framedata, self._blit)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 845, in _draw_next_frame\n    self._pre_draw(framedata, blit)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 858, in _pre_draw\n    self._blit_clear(self._drawn_artists, self._blit_cache)\n  File \"/usr/lib/python3/dist-packages/matplotlib/animation.py\", line 898, in _blit_clear\n    a.figure.canvas.restore_region(bg_cache[a])\nKeyError: </p>\n\n<p>This is the error when calling the function with a stage1_aps file. I've searched in the web but I think it's not about Tkinter, what do you think? I understand we gotta make a loop calling this function with every file and storing the values in a Matrix, right?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 210635,
      "author_name": "jbfarrar",
      "author_url": "",
      "post_date": "08/06/2017 11:03:29",
      "content": "<p>In my kernel posted <a href=\"https://www.kaggle.com/jbfarrar/exploratory-data-analysis-and-example-generation\">here</a>, I included candidate vertices to bound threat zones for the .aps data and approach for segmenting the data. Use if you find them helpful.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "203022": "Do we have any Starter Scripts that converts the these .aps into proper images to start working on modeling! (Im new to these kinda formats)",
    "203346": "https://www.kaggle.com/wcukierski/reading-images",
    "204493": "I've copy/pasted this and it doesn't work for me, it gives no output, but no errors though.",
    "204528": "You should use the read data function and get the 'data' variable.. as an array.  If you print 'data' in the plot function you can see the image matrix",
    "205659": "&gt;&gt;&gt; ri.plot_image('stage1_aps/1960477b8082bfc2c5347c7aa7017369.aps')",
    "210635": "In my kernel posted [here][1], I included candidate vertices to bound threat zones for the .aps data and approach for segmenting the data. Use if you find them helpful.\n\n\n  [1]: https://www.kaggle.com/jbfarrar/exploratory-data-analysis-and-example-generation"
  },
  "source": "meta"
}