ML Lecture 0-1: Introduction of Machine Learning

本博客是针对李宏毅教授在Youtube上上传的课程视频《ML Lecture 0-1: Introduction of Machine Learning》的学习笔记。在Github上也po了这个系列学习笔记(MachineLearningCourseNote),觉得写的不错的小伙伴欢迎来给项目点个赞哦~~

Lecture 0-1: Introduction of Machine Learning

  • Lecture 0-1: Introduction of Machine Learning
  • What we expect to learn from this course?
  • What is Machine Learning ?
    • ML mostly equal to Looking for a Function
    • How to find this function: Framework
  • Learning Map
    • Regression
    • Classification
    • Model
      • Linear Model
      • Non-linear Model
    • Semi-supervised Learning
    • Another way to save data: Transfer Learning
    • What can machine learn without label: Unsupervised Learning
    • Structured Learning: Output Result with Structure
    • Reinforcement Learning
  • Relation between Terminomogy

What we expect to learn from this course?

ML Lecture 0-1: Introduction of Machine Learning_第1张图片

Artificial Intelligence (AI) aims to make machines as smart as human beings. But for long, people don’t know how to do this.

Until 1980s, machine learning (ML) comes into beings. Just like its name, machine learning aims to make machine learn to learn.

Q1: what is the relationship between AI and ML?

A: ML is a potential way to achieve AI.

Q2: what is the relationship between ML and deep learning (DL)?

A: DL is one of methods of ML.

  • Extension: Creature’s Instinct: Beaver Build Dam

Beavers are born with the instinct to move stones to build dams as long as they hear the sounds of water flows.

ML Lecture 0-1: Introduction of Machine Learning_第2张图片

This can be summarized to a rule for beaver: When hear the sounds of water flows, build dam!

Compare it with Human Being’s Instinct

ML Lecture 0-1: Introduction of Machine Learning_第3张图片

  • AI is just some “if”s ?

ML Lecture 0-1: Introduction of Machine Learning_第4张图片

No, it’s not what we are chasing in the course!

What is Machine Learning ?

  • Do Speech Recognition

ML Lecture 0-1: Introduction of Machine Learning_第5张图片

  • Do Image Recognition

ML Lecture 0-1: Introduction of Machine Learning_第6张图片

ML mostly equal to Looking for a Function

True function to do perfect speech recognition is too complex, there are efforts starting from 1960s trying to write enough rules to include all mappings from voice to word, however it’s still not finished yet! So we need machine to help us find out the function From Data.

To simplify, we let machines try to find the true function using training data we give them. After that, machines would give response to new input data we give to them based on rules that they have learned from training.

ML Lecture 0-1: Introduction of Machine Learning_第7张图片

How to find this function: Framework

Example: Image Recognition

First, we have a set of function. (This set is called Model)

Then, we have training data, they consist of some input & output pairs, respectively used as function input and function output. (This method also known as Supervised Learning)

ML Lecture 0-1: Introduction of Machine Learning_第8张图片

  • How to find the true function from the set?

We need a good algorithm to find the best function ( f f ∗ function that has greatest goodness).

ML Lecture 0-1: Introduction of Machine Learning_第9张图片

After we find the best function f f ∗ , how can we make sure that a machine can recognize the cat in a picture that it has never seen before? Well, that is exactly one of the most important problem in ML, that is: can machine draw inferences?

  • Three Steps to do ML

1.Determine a function set;

2.Enable machines to measure how good a function is;

3.Give machines an algorithm that can help pick the “best” function.

ML Lecture 0-1: Introduction of Machine Learning_第10张图片

ML Lecture 0-1: Introduction of Machine Learning_第11张图片

Learning Map

  • What ML technics you can learn from this course ?

ML Lecture 0-1: Introduction of Machine Learning_第12张图片

Next, we give a simple introduction to conceptions included in the map.

Regression

Definition: The output of function that machine is trying to learn is a scalar.

Example: Predicting PM2.5

ML Lecture 0-1: Introduction of Machine Learning_第13张图片

Classification

Two types:
- Binary Classification: output Yes or No
- Multi-class Classification: output i (i {1,2,3,..,N})

ML Lecture 0-1: Introduction of Machine Learning_第14张图片

Example for binary classification: Gmail filter Spams

ML Lecture 0-1: Introduction of Machine Learning_第15张图片

Example for multi-class classification: Document Classification

ML Lecture 0-1: Introduction of Machine Learning_第16张图片

Model

Different model = Different set of functions -> Different Performance of machine

Linear Model

Non-linear Model

ML Lecture 0-1: Introduction of Machine Learning_第17张图片

Deep Learning is one of Non-linear models. When doing deep learning, it usually means that the goal function is very very complex, and therefore it can also complete complex tasks such as image recognition, playing GO!

ML Lecture 0-1: Introduction of Machine Learning_第18张图片

ML Lecture 0-1: Introduction of Machine Learning_第19张图片

All technics mentioned above belong to field of Supervised Learning, it usually comes with great quantities of training data. These training data are some input/output pairs of target function, and normally the output need to be manually labelled, so the function output is also called label.

Then, how to collect a large amount of labelled data?

A: Semi-supervised Learning.

ML Lecture 0-1: Introduction of Machine Learning_第20张图片

Semi-supervised Learning

Unlabelled data can also help machine learning!

ML Lecture 0-1: Introduction of Machine Learning_第21张图片

Another way to save data: Transfer Learning

(labelled/unlabelled) Data that are not directly linked with goal problem may be helpful to the goal problem.

ML Lecture 0-1: Introduction of Machine Learning_第22张图片

What can machine learn without label: Unsupervised Learning

ML Lecture 0-1: Introduction of Machine Learning_第23张图片

ML Lecture 0-1: Introduction of Machine Learning_第24张图片

  • Machine creates new animals after seeing some animal images

ML Lecture 0-1: Introduction of Machine Learning_第25张图片

ML Lecture 0-1: Introduction of Machine Learning_第26张图片

Structured Learning: Output Result with Structure

In speech recognition: input - a voice clip, output - corresponding sentence.

In translation: input - Chinese sentence, output - English sentence.

In object detection: input - images, output - boundary of object.

ML Lecture 0-1: Introduction of Machine Learning_第27张图片

Usually, many people heard of regression and classification, but seldom heard of Structured Learning, even textbooks may ignore it.

However, structured learning is a very important part of ML field!

ML Lecture 0-1: Introduction of Machine Learning_第28张图片

Reinforcement Learning

ML Lecture 0-1: Introduction of Machine Learning_第29张图片

ML Lecture 0-1: Introduction of Machine Learning_第30张图片

  • Supervised v.s. Reinforcement

Supervised: Have a supervisor to teach machine; (Learning from teacher)

Reinforcement: Let machine to explore and teach itself. (Learning from critics)

ML Lecture 0-1: Introduction of Machine Learning_第31张图片

So Reinforcement Learning is closer to how human beings learn.

Example: Plying GO

ML Lecture 0-1: Introduction of Machine Learning_第32张图片

Relation between Terminomogy

ML Lecture 0-1: Introduction of Machine Learning_第33张图片

Data you have determines what scenario your problem is in, the type of your problem defines its task, and we can use different models (methods) to solve same problems.

你可能感兴趣的:(Data,Mining,&,Machine,Learning)