{"id":102,"date":"2019-03-23T16:13:49","date_gmt":"2019-03-23T16:13:49","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/?p=102"},"modified":"2019-03-24T23:15:08","modified_gmt":"2019-03-24T23:15:08","slug":"jing-running-tensorflow-on-aws","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/2019\/03\/23\/jing-running-tensorflow-on-aws\/","title":{"rendered":"[Jing] Running Tensorflow on AWS"},"content":{"rendered":"<p>This week I began running my machine learning code on AWS. I first requested an EC2 instance with a GPU, which took about 2 days for AWS to process the request. Then on Wednesday I uploaded my data set and code to the EC2. Fortunately, the EC2 instance I requested was built for using Deep Learning libraries such as Tensorflow, so running the code on the GPU was a piece of cake. I simply had to change some settings on the EC2, and the code ran itself on the GPU (or so that&#8217;s what the terminal output said).<\/p>\n<p>My first iteration of training resulted in a training accuracy of 76% and a validation accuracy of 74%, and took around 6 hours to run. This was surprisingly good. Although it doesn&#8217;t meet our goal of 95%, it seems reliable enough for demoing purposes. In order to bump up the accuracy, I added another convolution and activation (relu) layer. After training for a second time, I achieved a training accuracy of 95%, and a validation accuracy of 76%. What this means is that the model is overfit, and needs a larger data set and a regularization function. I will make the data set larger by flipping all of the images over the y-axis, and add a regularization function, and retrain tonight.<\/p>\n<p>I will also draw a diagram for the solenoid sometime today. Once I finish the diagram, and once I retrain, I will update this post with the results.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-109\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-content\/uploads\/sites\/22\/2019\/03\/Solenoid-Circuit-245x300.png\" alt=\"\" width=\"245\" height=\"300\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-content\/uploads\/sites\/22\/2019\/03\/Solenoid-Circuit-245x300.png 245w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-content\/uploads\/sites\/22\/2019\/03\/Solenoid-Circuit.png 363w\" sizes=\"(max-width: 245px) 100vw, 245px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I began running my machine learning code on AWS. I first requested an EC2 instance with a GPU, which took about 2 days for AWS to process the request. Then on Wednesday I uploaded my data set and code to the EC2. Fortunately, the EC2 instance I requested was built for using Deep &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/2019\/03\/23\/jing-running-tensorflow-on-aws\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;[Jing] Running Tensorflow on AWS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":63,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[8],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/posts\/102"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":2,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/posts\/102\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s19-teama7\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}