{"id":241,"date":"2016-05-27T11:37:58","date_gmt":"2016-05-27T11:37:58","guid":{"rendered":"http:\/\/deberker.com\/archy\/?p=241"},"modified":"2021-11-06T16:04:54","modified_gmt":"2021-11-06T16:04:54","slug":"deep-learning-practical-1-intro-to-tensorflow","status":"publish","type":"post","link":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/","title":{"rendered":"Deep Learning Practical 1: Intro to Tensorflow"},"content":{"rendered":"<p>This week in the Deep Learning Reading Group we worked through some introductory exercises\u00a0on Tensorflow, based upon the provided tutorials and edited by <a href=\"http:\/\/www.zebk.com\">Zeb<\/a> and I. It&#8217;s targeted at those with minimal Python experience, but who have programmed\u00a0in Matlab.<\/p>\n<p>It&#8217;s largely self-explanatory; a collection of code examples with some discursive text, and a few snippets requiring you to fill in a few blanks. We go through:<\/p>\n<ul>\n<li>Basic addition and multiplication<\/li>\n<li>Working with Tensorflow sessions and variables<\/li>\n<li>Running a gradient descent by hand<\/li>\n<li>Using TF&#8217;s optimisers to do the gradient descent for us<\/li>\n<li>Basic plotting<\/li>\n<\/ul>\n<p>You can download the iPython notebook <a href=\"http:\/\/www.deberker.com\/archy\/files\/archyZebTF_Tutorial.ipynb.zip\">here<\/a>.<\/p>\n<p>You should then be able to get it started in your instantiation of Tensorflow (tips on installation\u00a0<a href=\"http:\/\/deberker.com\/archy\/?p=135\">here<\/a>) either by popping it into the local folder\u00a0which you&#8217;re syncing with Docker, or, more straightforwardly, by going to Upload on the right hand side of your Jupyter interface:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/upload.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-242\" src=\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/upload.png?resize=625%2C125\" alt=\"upload\" width=\"625\" height=\"125\" srcset=\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/upload.png?resize=940%2C188&amp;ssl=1 940w, https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/upload.png?resize=580%2C116&amp;ssl=1 580w, https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/upload.png?resize=768%2C153&amp;ssl=1 768w, https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/upload.png?resize=624%2C124&amp;ssl=1 624w, https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/upload.png?w=1208&amp;ssl=1 1208w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>Have fun! <a href=\"mailto:archy.berker.12@ucl.ac.uk\">Let me know<\/a> if you have problems or spot any issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week in the Deep Learning Reading Group we worked through some introductory exercises\u00a0on Tensorflow, based upon the provided tutorials and edited by Zeb and I. It&#8217;s targeted at those with minimal Python experience, but who have programmed\u00a0in Matlab. It&#8217;s largely self-explanatory; a collection of code examples with some discursive text, and a few snippets [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":243,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"hide_page_title":"","_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6],"tags":[],"class_list":["post-241","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-neural-networks"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deep Learning Practical 1: Intro to Tensorflow - Archy de Berker<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deep Learning Practical 1: Intro to Tensorflow - Archy de Berker\" \/>\n<meta property=\"og:description\" content=\"This week in the Deep Learning Reading Group we worked through some introductory exercises\u00a0on Tensorflow, based upon the provided tutorials and edited by Zeb and I. It&#8217;s targeted at those with minimal Python experience, but who have programmed\u00a0in Matlab. It&#8217;s largely self-explanatory; a collection of code examples with some discursive text, and a few snippets [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/\" \/>\n<meta property=\"og:site_name\" content=\"Archy de Berker\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-27T11:37:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-06T16:04:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1140\" \/>\n\t<meta property=\"og:image:height\" content=\"440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"archy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@archydeb\" \/>\n<meta name=\"twitter:site\" content=\"@archydeb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"archy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/\"},\"author\":{\"name\":\"archy\",\"@id\":\"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d\"},\"headline\":\"Deep Learning Practical 1: Intro to Tensorflow\",\"datePublished\":\"2016-05-27T11:37:58+00:00\",\"dateModified\":\"2021-11-06T16:04:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/\"},\"wordCount\":173,\"publisher\":{\"@id\":\"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d\"},\"image\":{\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1\",\"articleSection\":[\"Neural networks\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/\",\"url\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/\",\"name\":\"Deep Learning Practical 1: Intro to Tensorflow - Archy de Berker\",\"isPartOf\":{\"@id\":\"https:\/\/deberker.com\/archy\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1\",\"datePublished\":\"2016-05-27T11:37:58+00:00\",\"dateModified\":\"2021-11-06T16:04:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1\",\"width\":1140,\"height\":440},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/deberker.com\/archy\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deep Learning Practical 1: Intro to Tensorflow\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/deberker.com\/archy\/#website\",\"url\":\"https:\/\/deberker.com\/archy\/\",\"name\":\"Archy de Berker\",\"description\":\"Building things with data\",\"publisher\":{\"@id\":\"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/deberker.com\/archy\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d\",\"name\":\"archy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/deberker.com\/archy\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2021\/09\/freelance-logo.png?fit=359%2C311&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2021\/09\/freelance-logo.png?fit=359%2C311&ssl=1\",\"width\":359,\"height\":311,\"caption\":\"archy\"},\"logo\":{\"@id\":\"https:\/\/deberker.com\/archy\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/archydeb\"],\"url\":\"https:\/\/deberker.com\/archy\/author\/archy\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deep Learning Practical 1: Intro to Tensorflow - Archy de Berker","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/","og_locale":"en_US","og_type":"article","og_title":"Deep Learning Practical 1: Intro to Tensorflow - Archy de Berker","og_description":"This week in the Deep Learning Reading Group we worked through some introductory exercises\u00a0on Tensorflow, based upon the provided tutorials and edited by Zeb and I. It&#8217;s targeted at those with minimal Python experience, but who have programmed\u00a0in Matlab. It&#8217;s largely self-explanatory; a collection of code examples with some discursive text, and a few snippets [&hellip;]","og_url":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/","og_site_name":"Archy de Berker","article_published_time":"2016-05-27T11:37:58+00:00","article_modified_time":"2021-11-06T16:04:54+00:00","og_image":[{"width":1140,"height":440,"url":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1","type":"image\/png"}],"author":"archy","twitter_card":"summary_large_image","twitter_creator":"@archydeb","twitter_site":"@archydeb","twitter_misc":{"Written by":"archy","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#article","isPartOf":{"@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/"},"author":{"name":"archy","@id":"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d"},"headline":"Deep Learning Practical 1: Intro to Tensorflow","datePublished":"2016-05-27T11:37:58+00:00","dateModified":"2021-11-06T16:04:54+00:00","mainEntityOfPage":{"@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/"},"wordCount":173,"publisher":{"@id":"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d"},"image":{"@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1","articleSection":["Neural networks"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/","url":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/","name":"Deep Learning Practical 1: Intro to Tensorflow - Archy de Berker","isPartOf":{"@id":"https:\/\/deberker.com\/archy\/#website"},"primaryImageOfPage":{"@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage"},"image":{"@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1","datePublished":"2016-05-27T11:37:58+00:00","dateModified":"2021-11-06T16:04:54+00:00","breadcrumb":{"@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#primaryimage","url":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1","contentUrl":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1","width":1140,"height":440},{"@type":"BreadcrumbList","@id":"https:\/\/deberker.com\/archy\/deep-learning-practical-1-intro-to-tensorflow\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/deberker.com\/archy\/"},{"@type":"ListItem","position":2,"name":"Deep Learning Practical 1: Intro to Tensorflow"}]},{"@type":"WebSite","@id":"https:\/\/deberker.com\/archy\/#website","url":"https:\/\/deberker.com\/archy\/","name":"Archy de Berker","description":"Building things with data","publisher":{"@id":"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/deberker.com\/archy\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/deberker.com\/archy\/#\/schema\/person\/01cf8dd0f94a4ba124b26eeeeb59e67d","name":"archy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/deberker.com\/archy\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2021\/09\/freelance-logo.png?fit=359%2C311&ssl=1","contentUrl":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2021\/09\/freelance-logo.png?fit=359%2C311&ssl=1","width":359,"height":311,"caption":"archy"},"logo":{"@id":"https:\/\/deberker.com\/archy\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/x.com\/archydeb"],"url":"https:\/\/deberker.com\/archy\/author\/archy\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/deberker.com\/archy\/wp-content\/uploads\/2016\/05\/deepL_Practical1.png?fit=1140%2C440&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4cGwe-3T","jetpack-related-posts":[],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":5,"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":1165,"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/posts\/241\/revisions\/1165"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/media\/243"}],"wp:attachment":[{"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deberker.com\/archy\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}