百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

coursera-ml-py

> DevOps
开源

Python 由 Andrew Ng 教授在 Coursera 所开设的 机器学习 编程作业

1.4K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Python 由 Andrew Ng 教授在 Coursera 所开设的 机器学习 编程作业

Coursera Machine Learning Assignments in Python

About

If you've finished the amazing introductory Machine Learning on Coursera by Prof. Andrew Ng, you probably got familiar with Octave/Matlab programming. With this repo, you can re-implement them in Python, step-by-step, visually checking your work along the way, just as the course assignments.

How to start

Dependencies

This project was coded in Python 3.6

  • numpy
  • matplotlib
  • scipy
  • scikit-learn
  • scikit-image
  • nltk

Installation

The fastest and easiest way to install all these dependencies at once is to use Anaconda.

Important Note

There are a couple of things to keep in mind before starting.

  • all column vectors from octave/matlab are flattened into a simple 1-dimensional ndarray. (e.g., y's and thetas are no longer m x 1 matrix, just a 1-d ndarray with m elements.) So in Octave/Matlab,
    >> size(theta)
    >> (2, 1)
    
    Now, it is
    >>> theta.shape
    >>> (2, )
    
  • numpy.matrix is never used, just plain ol' numpy.ndarray

Contents

Exercise 1

  • Linear Regression
  • Linear Regression with multiple variables

Exercise 2

  • Logistic Regression
  • Logistic Regression with Regularization

Exercise 3

  • Multiclass Classification
  • Neural Networks Prediction fuction

Exercise 4

  • Neural Networks Learning

Exercise 5

  • Regularized Linear Regression
  • Bias vs. Variance

Exercise 6

  • Support Vector Machines
  • Spam email Classifier

Exercise 7

  • K-means Clustering
  • Principal Component Analysis

Exercise 8

  • Anomaly Detection
  • Recommender Systems

Solutions

You can check out my implementation of the assignments here. I tried to vectorize all the solutions.

Issues· 1 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonandrew-ng-courseandrew-ng-machine-learningandrew-ng-ml-courseanomaly-detection

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理