Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Notes and Assignments for Andrew Ng's Machine Learning - Python3 code

Notifications You must be signed in to change notification settings

makingagent/Coursera-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

44 Commits

Repository files navigation

项目简介

本项目是 吴恩达机器学习 课程的 笔记 和 作业。课程作业原先使用的是 Octave 和 MATLAB。不过笔者觉得无论是对 Machine Learning 的学习还是对未来工程项目的开发 Python 都更为合适。所以笔者就使用 Python 将课程作业重新实现了一遍。 希望这个项目能帮助大家理清课程的内容,理解算法背后的模型,掌握一些 Python 基本库的使用。

Python 依赖包

pip install numpy
pip install matplotlib
pip install scipy

第一周 | 线性回归

python ex1.py 
python ex1_multi.py 

第二周 | 逻辑回归

python ex2.py 
python ex2_reg.py 

第三周 | 神经网络 | 多分类问题

python ex3.py 
python ex3_nn.py 

第四周 | 神经网络 | 反向传播算法

python ex4.py

第五周 | 方差与偏差

python ex5.py

第六周 | 支持向量机

python ex6.py
python ex6_spam.py

第七周 | 无监督学习算法 | k-means 与 PCA

  • 笔记
  • 作业说明
  • 数据:bird_small.png,ex7data1.mat,ex7data2.mat,ex7faces.mat
  • 作业文件:ex7.py,ex7_pca.py
python ex7.py
python ex7_pca.py

第八周 | 异常检测与协同过滤

  • 笔记
  • 作业说明
  • 数据:ex8data1.mat,ex8data2.mat,ex8_movies.mat,ex8_movieParams.mat,movie_ids.txt
  • 作业文件:ex8.py,ex8_cofi.py
python ex8.py
python ex8_cofi.py

About

Notes and Assignments for Andrew Ng's Machine Learning - Python3 code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /