吴恩达机器学习课程笔记

2020/07/02 学习

ML: definition;learn form experience

image-20200613152522370

supervise learning

image-20200613153138892

image-20200614113303118

classification or regression

image-20200614114057227

unsupervised learning

give data set automaticlly

image-20200614140415242

image-20200614141235410

linear regression

image-20200614143947128

### cost function intuition 1

image-20200614145104427

cost function intuition 2

problem formulation

image-20200614145456974

image-20200614150350742

Linear Algebra

image-20200628084303422

Multiple features

image-20200628084931702

image-20200628085114286

用向量表示后:

image-20200628085408449

image-20200628085555575

apply the gradient descent

image-20200628090636981

Feature Scaling

image-20200628091040408

converge much faster

image-20200628091747967

image-20200628092326878

image-20200628092759770

Features and Polynomial Regression

image-20200629081257920

Normal Equation

image-20200629081645170

image-20200629082613129

如何选择标准计算方法还是梯度下降算法

image-20200629083551001

特征过大 计算复杂度过高 梯度下降;否则可以考虑标准计算方法。

image-20200629084306944

如何解决矩阵不可逆的问题

#############################################################################

数学知识补充:

#############################################################################

奇异矩阵

方阵 A =0;该矩阵不可逆。

## Normal Equation(如何解决不可逆问题)

image-20200630145055735

  • 观察特征 然后删掉多余特征。
  • 正则化

octave plot

image-20200630153040974

vectorization

image-20200630155335699

Multiclass Classification one-vs-all

逻辑回归用于多分类:

image-20200701185331744

image-20200701185430451

image-20200701185945162

image-20200701190146889

image-20200706091401378

Regularization —cost function

image-20200706092400743

image-20200706093517462

image-20200706093627176

高偏差

实现参数和原始优化函数的平衡。

Regularization linear regression

image-20200707084528120

image-20200707084743704

加入正则化项,从不可逆变成可逆。

Regularization logistic regression

image-20200707085307669

通过约束$\theta_j$,防止过拟合。

image-20200707091222404

image-20200707091534588

Non-Linear Hypothesis

image-20200708152724297

Neurons and the brain

Neural Networks Representation

Model representation

image-20200708154632549

image-20200708154944058

Cost function

image-20200710202054449

image-20200711083947238

image-20200711084014341

image-20200711084101527image-20200711084102036image-20200711084102137

image-20200711084945392

image-20200711085316786、

image-20200711085530194

How implement the gradient check

image-20200711085813729

image-20200713082307602

image-20200708162143964

image-20200713083109687

image-20200713083546114

Decide what to try next

image-20200713084809191

image-20200713085023962

Evaluating your hypothesis

image-20200713085851433

Model Selection and Train_Validation_Test_Sets

image-20200714081118033

image-20200714081205817

image-20200714081421078

Diagnoising Bias vs Variance

image-20200714081703661

image-20200714082243050

Regularization and Bias_Variance

image-20200714082555056

image-20200714083019870

image-20200714083343986

Learning Curves

image-20200714084339563

image-20200714084546235

image-20200714084711962

image-20200714085007835

Deciding What to Do Next Revisited

image-20200715080426234

image-202007150806513004

Machine Design Problem

Prioritizing what to work on

image-20200715081343879

image-20200715081654114

Error Analysis

image-20200715083053605

快速并不完美,但找到了修改方向。

Error Metrics for Skewed Classes

image-20200715083652211

image-20200715084208214

Trading off precision and recall

image-20200715085144314

image-20200715085805040

Data for Machine Learning

image-20200716081023158

image-20200716081416620

image-20200716081653708

Support Vector Machines

Optimization Objective

image-20200716082806667

image-20200716083359224

image-20200716083446895

large Margin Intuition

image-20200716083725038

image-20200716084029968

image-20200716084239236

image-20200716084558058

Mathematics Behind Large Margin Classification

image-20200716085504733

image-20200716090033037

image-20200716090840253

Kernels

image-20200717101729400

image-20200717102118024

image-20200717103319660

用landmarks得到新的特征。

image-20200717103941130

image-20200717104518749

image-20200717104937012

Using An SVM

image-20200717105457464

image-20200717105916463

image-20200717110248399

image-20200717110503531

image-20200717110954255

Unsupervised Learning Introduction

image-20200718141014417

K-means algorithm

image-20200718141551309

image-20200718142959839

image-20200718143146425

Optimization Objective

image-20200718150111252

image-20200718150349706

Random Initlization

image-20200718150756635

image-20200718150854106

不同的初始化方法,不同的局部最优。

image-20200718151124813

多次随机初始化。

Choosing the Number of Clusters

image-20200718151736738

image-20200718152028066

Advice for Applying PCA

image-20200720080009852

image-20200720080151498

image-20200720080439434

image-20200720080719785

Anomaly detection

Problem Motivation

image-20200720081030583

image-20200720081304147

image-20200720081721817

Gaussian Distribution

image-20200720082121096

image-20200720082358151

image-20200720082803446

Developing and Evaluating an Anomaly Detection System

image-20200720084733237

Developing and Evaluating an Anomaly Detection System

image-20200720085221369

image-20200720091826588

image-20200720092355833

Anomaly Detection vs Supervised Learning

image-20200720092735757

image-20200720092924784

image-20200720093225944

Choosing what features to use

image-20200720093708730

image-20200720093837483

image-20200720094250131

image-20200720094519591

Multivariate Gaussian Distribution

image-20200721080305278

image-20200721080545899

image-20200721080747141

image-20200721081101587

image-20200721081144417

image-20200721081239080

image-20200721081346355

image-20200721081423832

image-20200721081524152

Anomaly Detection using the Multivariate Gaussian Distribution

image-20200721081736240

image-20200721081934325

image-20200721082259493

image-20200721083003956

Recommender Systems

image-20200721083732517

Content Based Recommendations

image-20200721084443652

image-20200721084753400

image-20200721084829283

image-20200721085001710

image-20200721085230918

Collaborative filtering

image-20200721091733566

image-20200721093321351

image-20200721093545829

image-20200721093823718

评价 更新参数 评价 更新参数 不断迭代。每个人/用户/对象的每一次评价,都会帮助系统完善自己和其他人的权重。称之为协同过滤。

Collaborative filtering algorithm

image-20200722075956880

image-20200722080411344

Vectorization Low Rank Matrix Factorization

image-20200722080950142

image-20200722081250688

Implementation Detail Mean Normalization

image-20200722081808677

image-20200722082156616

Learning With Large Datasets

image-20200722082502000

image-20200722082853015

有效的算法得到大数据集下的训练效果。

Stochastic Gradient Descent

image-20200722083124166

image-20200722083239300

image-20200722083807605

image-20200722084146101

Mini-batch gradient descent

image-20200722084627870

Stochastic Gradient Descent Convergence

image-20200722085356005

image-20200722085824021

image-20200722090053632

Online Learning

image-20200722090841746

image-20200722093256475

Map-reduce and data parallelism

image-20200723082707950

image-20200723083109881

image-20200723083414934

image-20200723083658396

Application example photo ocr

Problem Description and pipeline

image-20200723084227527

image-20200723084420997

Sliding windows

image-20200723084648661

image-20200723084748912

image-20200723085000572

image patch :绿色矩形框。固定长宽比。

image-20200723085045947

image-20200723085129889

image-20200723085501598

image-20200723085757929

image-20200723085843251

Getting lots of Data and artificial Data

image-20200723090305789

image-20200723090458578

image-20200723090719916

image-20200723090851957

图片添加随机噪声不一定有意义。

image-20200723091459808

Ceiling Analysis what part of the pipeline to work on next

image-20200723092348871

分析改变每个模块能提升的上限,有助于下一步决策。

image-20200723092538335

image-20200723092757227

上下限分析。

Summary

image-20200723093254696

image-20200723093508357

Search

    Table of Contents