{"id":377,"date":"2017-10-11T08:49:44","date_gmt":"2017-10-11T08:49:44","guid":{"rendered":"http:\/\/www.nullplug.org\/ML-Blog\/?p=377"},"modified":"2017-10-26T15:46:48","modified_gmt":"2017-10-26T15:46:48","slug":"problem-set-1","status":"publish","type":"post","link":"http:\/\/www.nullplug.org\/ML-Blog\/2017\/10\/11\/problem-set-1\/","title":{"rendered":"Problem Set 1"},"content":{"rendered":"<h2>Problem Set 1<\/h2>\n<p>This is to be completed by November 27th, 2017. (THIS IS A TYPO: This should read October 26th, 2017). It is okay if you finish by this ridiculous first due date.<\/p>\n<h4>Forewarning<\/h4>\n<p>For several of these exercises, you will be asked to install software and\/or setup accounts from outside websites. These websites may try to convince you to purchase some of their products. You do <em>not<\/em> need to purchase anything to do these exercises. All of the required materials have been made freely available to us.<\/p>\n<h3>Exercises<\/h3>\n<ol>\n<li>Learn the most important skill for this course\n<ul>\n<li>Learn how to use <a href=\"http:\/\/www.google.de\">Google<\/a> to find an answer to almost any technical problem (e.g., &#8216;How do I install &#8212; for Windows?&#8217; or &#8216;How do I do &#8212; in R\/Python?&#8217; or &#8216;I&#8217;m getting a weird error message, how do I fix it?&#8217;). If you have not learned how to do this yet, I highly recommend it. It will open up your world to a range of new possibilities. <\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/www.datacamp.com\/home\">Datacamp<\/a>\n<ul>\n<li>Setup a <a href=\"https:\/\/www.datacamp.com\/home\">Datacamp<\/a> account and join the course group by using the email invitation. Note you should not have to pay any money to do this. I do not believe you will need to provide any bank information for this purpose.<\/li>\n<li>Try out some of the lessons designated for the course. <\/li>\n<li>During the course you should keep up with the assigned lessons.<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/www.rstudio.com\/\">RStudio<\/a>\n<ul>\n<li>Follow this <a href=\"http:\/\/web.cs.ucla.edu\/~gulzar\/rstudio\/\">tutorial<\/a> to install <a href=\"https:\/\/www.rstudio.com\/\">RStudio<\/a>. RStudio is an interactive development environment for the R programming language. Which will make it easier to complete the R exercises. Again, you should not have to pay anything for this.<\/li>\n<li>Install the ISLR package from CRAN. While you&#8217;re at it you may as well install caret, dplyr, tidyr, and ggplot2.<\/li>\n<li>Try out the commands from this <a href=\"http:\/\/www-bcf.usc.edu\/~gareth\/ISL\/Chapter%202%20Lab.txt\">lab<\/a>. <\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/www.python.org\/\">Python<\/a> (Optional, but recommended for those interested in learning Python<sup id=\"fnref-377-1\"><a href=\"#fn-377-1\" class=\"jetpack-footnote\">1<\/a><\/sup>)\n<ul>\n<li>Install <a href=\"https:\/\/www.anaconda.com\/download\/\">Anaconda<\/a> using Python 3.x (Python 2.7 is outdated, but still often used). As I remember it, this requires you to setup an account, but you will not have to pay anything. They will send you emails which you will have to unsubscribe from. I believe this is a small price to pay for a system that manages your Python installation and includes many of the packages used in data science.<\/li>\n<\/ul>\n<\/li>\n<li>Additional material\n<ul>\n<li>Glance at some of the additional <a href=\"http:\/\/www.nullplug.org\/ML-Blog\/2017\/09\/27\/additional-sources\/\">source material<\/a> for the course. <\/li>\n<li>Since we will be using it for R labs, download the ISLR book (or go and buy it if you like it!).<\/li>\n<\/ul>\n<\/li>\n<li>R lab\n<ul>\n<li>Complete exercise 8 from Chapter 2 of ISLR. In this exercise you will be exploring data gathered from universities and colleges in the United States.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<div class=\"footnotes\">\n<hr \/>\n<ol>\n<li id=\"fn-377-1\">\nIn my humble opinion, <a href=\"https:\/\/www.python.org\/\">Python<\/a> is a truly wonderful language with an incredible number of highly useful libraries. Once you know Python, it is a surprisingly short road to solving many typical computer tasks. It is typically much slower than other, or more grown-up, languages such as C\/C++ or Java, but the speed-up in development time makes up for it for the kind of tasks we will be considering. Moreover, the syntax is very natural and easy to learn. (Drops the microphone)&#160;<a href=\"#fnref-377-1\">&#8617;<\/a>\n<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Problem Set 1 This is to be completed by November 27th, 2017. (THIS IS A TYPO: This should read October 26th, 2017). It is okay if you finish by this ridiculous first due date. Forewarning For several of these exercises, you will be asked to install software and\/or setup accounts from outside websites. These websites &hellip; <a href=\"http:\/\/www.nullplug.org\/ML-Blog\/2017\/10\/11\/problem-set-1\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Problem Set 1&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_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}},"categories":[1],"tags":[],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9dIpN-65","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":538,"url":"http:\/\/www.nullplug.org\/ML-Blog\/2017\/11\/24\/problem-set-6\/","url_meta":{"origin":377,"position":0},"title":"Problem Set 6","author":"Justin Noel","date":"November 24, 2017","format":false,"excerpt":"Problem Set 6 This is to be completed by November 30th, 2017. Exercises Datacamp Complete the lesson: a. Text Mining: Bag of Words Exercises from Elements of Statistical Learning Complete exercises: a. 4.2 b. 4.6 Run the perceptron learning algorithm by hand for the two class classification problem with $(X,Y)$-pairs\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"http:\/\/www.nullplug.org\/ML-Blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":543,"url":"http:\/\/www.nullplug.org\/ML-Blog\/2017\/12\/04\/543\/","url_meta":{"origin":377,"position":1},"title":"Problem Set 7","author":"Justin Noel","date":"December 4, 2017","format":false,"excerpt":"Problem Set 7 This is to be completed by December 7th, 2017. Exercises Datacamp Complete the lesson: a. Credit risk modeling in R. Exercises from Elements of Statistical Learning Complete exercise: a. 4.5 (Use the reduced form of the logistic classifier that fits an (n,k-1)-matrix for a problem with n\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"http:\/\/www.nullplug.org\/ML-Blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":550,"url":"http:\/\/www.nullplug.org\/ML-Blog\/2017\/12\/11\/problem-set-8\/","url_meta":{"origin":377,"position":2},"title":"Problem Set 8","author":"Justin Noel","date":"December 11, 2017","format":false,"excerpt":"Problem Set 8 This is to be completed by December 14th, 2017. There will be no exercise session this week. Exercises Datacamp Complete the lesson: a. Beginning Bayes in R","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"http:\/\/www.nullplug.org\/ML-Blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":558,"url":"http:\/\/www.nullplug.org\/ML-Blog\/2018\/01\/09\/problem-set-10\/","url_meta":{"origin":377,"position":3},"title":"Problem Set 10","author":"Justin Noel","date":"January 9, 2018","format":false,"excerpt":"Problem Set 10 This is to be completed by January 11th, 2018. Exercises Datacamp Complete the lesson: a. Intro to Python for Data Science During this week's problem session I will provide an introduction to Python.","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"http:\/\/www.nullplug.org\/ML-Blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":579,"url":"http:\/\/www.nullplug.org\/ML-Blog\/2018\/01\/26\/problem-set-13\/","url_meta":{"origin":377,"position":4},"title":"Problem Set 13","author":"Justin Noel","date":"January 26, 2018","format":false,"excerpt":"Problem Set 13 This is to be completed by February 1st, 2018. Exercises Datacamp * Complete the lesson: a. Python Data Science Toolbox (Part II) For a logistic regressor (multiclass ending in softmax) write down the update rules for gradient descent. For a two layer perceptron ending in softmax with\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"http:\/\/www.nullplug.org\/ML-Blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":531,"url":"http:\/\/www.nullplug.org\/ML-Blog\/2017\/11\/17\/problem-set-5\/","url_meta":{"origin":377,"position":5},"title":"Problem Set 5","author":"Justin Noel","date":"November 17, 2017","format":false,"excerpt":"Problem Set 5 This is to be completed by November 23rd, 2017. Exercises Datacamp Complete the lesson: a. Machine Learning Toolbox R Lab: Write a function in R that will take in a vector of discrete variables and will produce the corresponding one hot encodings. Write a function in R\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"http:\/\/www.nullplug.org\/ML-Blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":10,"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":469,"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/posts\/377\/revisions\/469"}],"wp:attachment":[{"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nullplug.org\/ML-Blog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}