Machine Learning Andrew Ng -1. Introduction

1.1 Welcome to machine learning

Machine Learning

  • Grew out of work in AI
  • New capability for computers

Examples:

  • Database mining

    Large databases from growth of automation / web.

    E.g., Web click data, medical records, biology, engineering

  • Application can’t program by hand.

    E.g., Autonomous helicopter, handwriting recognition, most of Natural Language Processing (NPL), Computer Vision.

  • Self-customizing (私人定制) programs

    E.g., Amazon, Netflix product recommendations

  • Understanding human learning (brain, real AI).

1.2 What is machine learning

Machine Learning definition

  • Arthur Samuel (1959) : Machine Learning is a field of study that gives computers the ability to learn without being explicitly programmed.
  • Tom Mitchell (1998) : Well-posed Learning Problem : A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance on T, as measured by P, improves with experience E.

Machine learning algorithms :

  • Supervised learning
  • Unsupervised learning

Others : Reinforcement learning (强化学习) , recommender systems (推荐系统) .

Also talk about : Practical advice for applying learning algorithms.

1.3 Supervised Learning

在这里插入图片描述

Fitting a straight line to the data, or fitting a quadratic function (二次函数), or a second-order polynomial (二次多项式) to this data may be better.

How to choose ? How to decide ?

Supervised Learning : “right answers” given.

We gave the algorithm a data set, in which the “right answer” were given.

Regression (回归) : Predict continuous valued output ( price)

We’re trying to predict the sort of continuous values attribute.

在这里插入图片描述

Classification : Discrete valued output (0 or 1)

We’re trying to predict a discrete valued output : (0 or 1). Sometimes, you can have more than two possible values for the output.

在这里插入图片描述

We may have more than one feature, more than one attribute (属性),

在这里插入图片描述

How do we deal with an infinite number of features ? How do even store an infinite number of things on the computer ?

Support Vector Machine : allow computer to deal with an infinite number of features.

1.4 Unsupervised Learning

CSDN上图片如何缩放啊啊啊啊啊 在typroa上markdown缩放50% sooo easy 转到CSDN就…森气

在这里插入图片描述
Alt

Unsupervised learning that doesn’t have any labels, or that all has the same label or really no labels. We’re given the data set and we’re not told what to do with it, and we’re not told what each data point is.

Instead we’re just tole, here is a data set, can you find some structure in the data ?

Given this data set, an Unsupervised Learning algorithm might decide that the data lives in two different clusters (簇) .

Clustering algorithm (聚类算法) :

在这里插入图片描述

Cocktail party algorithm (鸡尾酒会算法) : separate out two audio sources that were being added or being summed together to form other recordings.

在这里插入图片描述

[ W , s , v ] = s v d ( ( r e p m a t ( s u m ( x . ∗ x , 1 ) , s i z e ( x , 1 ) , 1 ) . ∗ x ) ∗ x ′ ) ​ [W,s,v] = svd((repmat(sum(x.*x,1),size(x,1),1).*x)*x')​ [W,s,v]=svd((repmat(sum(x.x,1),size(x,1),1).x)x)

When you use the right programming environment, many learning algorithm can be really short programs.

svd = singular value decomposition (奇异值分解)

Using Octave to first prototyping the learning algorithm (建立学习算法模型), only after you’ve gotten it to work , then you migrate it to C++ or Java or whatever.

lgorithm (建立学习算法模型), only after you’ve gotten it to work , then you migrate it to C++ or Java or whatever.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值