课堂笔记 - 深度学习 Deep Learning (3)

简单了解前导知识後就是正式进入机器学习的几种模式>>

  • Types Of Learning

1.Supervised Learning:Training data with output labels.
训练机器学习时提供正确答案,依照输出的资料类型分为两种:
Classification: output labels are categories values.
Regression: output labels are numeric values.

2.Unsupervised Learning:Training data without output labels.
不提供正确答案,将资料进行分组:Clustering (grouping similar instances).

3.Reinforcement Learning:Training algorithms receive no supervised output labels but use delayed reward and punishment to learn best actions.
不提供正确解答,但是将依照成果给予奖励或惩罚,以此来让机器学习。

表格化介绍以上三种学习模式:
https://ithelp.ithome.com.tw/upload/images/20211024/20142783EYGfPRFX9r.png

  • Components of Learning

组成机器学习的元素:输入、输出、目标函式、资料、假设(Hypothesis)

举例来说,如果要利用收入和储蓄的数据来看是否核发信用卡的话:
输入:收入、储蓄 X[x1,x2]
输出:是/否 (y)
目标函式:f(X)=y
资料:以前的数据(X1,y1)、(X2,y2)...(Xn,yn)
假设函式:g(X)=y

机器学习的目的是找到假设的函式使它趋近於未知的目标函式,
於是先以现有的资料代入演算法A,得出假设的函式後再预测输入值H的输出为何。

可以得知组成一个学习模型的两个要素:完成学习的演算法A待预测的输入值H

学习模型也分为训练阶段测试阶段
https://ithelp.ithome.com.tw/upload/images/20211024/20142783zPEd7lNoK9.png

学习模型因为演算法的不同所以可以分为很多种,介绍三个较为常见的Model类别:

1.Linear Model,演算法:如PLA (线性分类)
https://ithelp.ithome.com.tw/upload/images/20211024/20142783Qe70cVJzYx.png
https://ithelp.ithome.com.tw/upload/images/20211024/201427834qpTX6VRmX.png

2.Rule-Based Model ,演算法:如ID3 (有规则可循)
https://ithelp.ithome.com.tw/upload/images/20211024/20142783UImU1Eqc14.png
https://ithelp.ithome.com.tw/upload/images/20211024/20142783wyqVltjTDq.png

3.Instance-Based Model,演算法:如1NN (看邻居答案之後照抄)
https://ithelp.ithome.com.tw/upload/images/20211024/20142783FLe2lYXWrr.png
https://ithelp.ithome.com.tw/upload/images/20211024/20142783sLeS1fRzts.png
注意:在查询之前资料会一直放在序列中等待,是一个懒惰的演算法


<<:  课堂笔记 - 深度学习 Deep Learning (2)

>>:  课堂笔记 - 深度学习 Deep Learning (4)

爬虫怎麽爬 从零开始的爬虫自学 DAY3 开发环境-2 安装Visual Studio Code

前言 各位早安,昨天我们一起安装好了python,接下来今天我们要搞定Visual Studio C...

Day 12 Kafka 超简单安装!!

今天要介绍如何安装 Kafka 方法一. 利用 Docker 安装 Kafka 安装 Docker-...

D14 - 服务生!我要 this this this

前言 想像一下,今天你是负责帮忙点菜的服务生,来了一桌客人,拿着菜单跟你说 「 我要 this th...

[Day 13]

一、短线资料(5分线) 读取需要的Libiary import datetime import wa...

【Day 03】- 打针!打针!从 R0 注入的那件事!

Agenda 资安宣言 测试环境与工具 学习目标 技术原理与程序码 References 下期预告 ...