Machine Learning - Day2 -ML Intro

Edible Instruction

  1. Too many formulations and equations, so screen shots of PPT is necessary.
  2. My mathematics sucks, so you 'll see many mathematical knowledge interspersed in my all ML learning session.
  3. Don’t be afraid of any mathematical symbol, just BAIDU the definition.

What’s Machine Learning?

Machine Learning = Looking for function

What’s the function in math?
In mathematics, a function is a binary relation between two sets that associates to each element of the first set exactly one element of the second set.
在这里插入图片描述

The reality of scene:

在这里插入图片描述

Different Types Of Functions

Regression

Regression : The function outputs a scalar
Ref: Lean more about regression

在这里插入图片描述

Classification

Classification: Given options(classes), the function outputs the correct one.

在这里插入图片描述
So Alpha Go is a classification function, 19X19 classes to output a position
在这里插入图片描述

Structured Learning

Structured Learning: Create something with structure( image, doctument, video)
Ask machine to create the things.

Example application

Reminder: the function of sample is a conjecture

Estimating the views of Youtube channel tomorrow, base on the history of views

在这里插入图片描述

  1. Function with unknown parameters
    在这里插入图片描述

  2. Define Loss from Training Data (Important!!!)

Loss is a function of parameters L(b,w), and comes from the Training DATA.
Loss: how good a set of values is.
So, if Loss value is large, the parameters are bad.

Suppose L(0.5k, 1)
在这里插入图片描述

Label : The true value is label!!!

在这里插入图片描述

∑ \sum : Sum things up (called Sigma)
Refer to Article


在这里插入图片描述

Sum all e n e_n en up

在这里插入图片描述
Choose MAE to calculate on the PPT, and MSE on the homework
在这里插入图片描述

probability distribution (概率分布)
Cross entropy (交叉熵)

在这里插入图片描述
The graph of true data
在这里插入图片描述
3. Optimization
在这里插入图片描述

arg min f(x) : the value of x when f(x) have the minimum value. arg =
argument, arg min: the argument of the minimum of target function

Gradient Descent:

What’s Gradient Descent?
Please refer to Article and Video

Postulate we only have one unknown parameter

在这里插入图片描述

Pick an initial value W 0 W^0 W0 (Blind guess here)

Differential coefficient(微分), please refer to 知乎acticle
and Differential Equations Solution Guide

在这里插入图片描述

Learning rate : η \eta η

在这里插入图片描述

Update 𝑤 iterative, and find local minima, can’t find global minima? That’s not true.

在这里插入图片描述

Postulate we have two unknown parameters

在这里插入图片描述
Graph
在这里插入图片描述
Summarize all above:
在这里插入图片描述

HOW TO BE BETTER

You need to know:
We’re using the real data(1/1) with function y to calculate the value of (1/2), and iterate to 2/14
We found another law that the views are lower on Friday and Saturday.

在这里插入图片描述
Base on the graph, we’ll use a new model.

在这里插入图片描述

We’ll learn Linear models on Intro_2.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值