吴恩达机器学习笔记系列(一)——第一周练习题

一、review questions

1、第 1 个问题

A computer program is said to learn from experience E withrespect to some task T and some performance measure P if itsperformance on T, as measured by P, improves with experience E.Suppose we feed a learning algorithm a lot of historical weatherdata, and have it learn to predict weather. What would be areasonable choice for P?

  • The probability of it correctly predicting a future date’s weather.
  • The weather prediction task.
  • None of these.
  • The process of the algorithm examining a large amount of historical weather data.

2、第 2 个问题

Suppose you are working on weather prediction, and your weatherstation makes one of three predictions for each day’s weather:Sunny, Cloudy or Rainy. You’d like to use a learning algorithmto predict tomorrow’s weather.Would you treat this as a classification or a regression problem?

  • Regression
  • Classification

3、第 3 个问题

Suppose you are working on stock market prediction, and you would like to predict the price of a particular stock tomorrow(measured in dollars). You want to use a learning algorithm for this.Would you treat this as a classification or a regression problem?

  • Regression
  • Classification

4、第 4 个问题

Some of the problems below are best addressed using a supervisedlearning algorithm, and the others with an unsupervisedlearning algorithm. Which of the following would you applysupervised learning to? (Select all that apply.) In each case, assume some appropriatedataset is available for your algorithm to learn from.

  • Given 50 articles written by male authors, and 50 articles written by female authors, learn to predict the gender of a new manuscript’s author (when the identity of this author is unknown).
  • Take a collection of 1000 essays written on the US Economy, and find a way to automatically group these essays into a small number of groups of essays that are somehow “similar” or “related”.
  • Given historical data of children’s ages and heights, predict children’s height as a function of their age.
  • Examine a large collection of emails that are known to be spam email, to discover if there are sub-types of spam mail.

5、第 5 个问题

Which of these is a reasonable definition of machine learning?

Machine learning is the field of allowing robots to act intelligently.

  • Machine learning is the field of study that gives computers the ability to learn without being explicitly programmed.
  • Machine learning is the science of programming computers.
  • Machine learning learns from labeled data.
Programming Exercise 1: Linear Regression Machine Learning Introduction In this exercise, you will implement linear regression and get to see it work on data. Before starting on this programming exercise, we strongly recom- mend watching the video lectures and completing the review questions for the associated topics. To get started with the exercise, you will need to download the starter code and unzip its contents to the directory where you wish to complete the exercise. If needed, use the cd command in Octave/MATLAB to change to this directory before starting this exercise. You can also find instructions for installing Octave/MATLAB in the “En- vironment Setup Instructions” of the course website. Files included in this exercise ex1.m - Octave/MATLAB script that steps you through the exercise ex1 multi.m - Octave/MATLAB script for the later parts of the exercise ex1data1.txt - Dataset for linear regression with one variable ex1data2.txt - Dataset for linear regression with multiple variables submit.m - Submission script that sends your solutions to our servers [?] warmUpExercise.m - Simple example function in Octave/MATLAB [?] plotData.m - Function to display the dataset [?] computeCost.m - Function to compute the cost of linear regression [?] gradientDescent.m - Function to run gradient descent [†] computeCostMulti.m - Cost function for multiple variables [†] gradientDescentMulti.m - Gradient descent for multiple variables [†] featureNormalize.m - Function to normalize features [†] normalEqn.m - Function to compute the normal equations ? indicates files you will need to complete † indicates optional exercises
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值