# Coursera Machine Learning Assignments in Python
[![author](https://img.shields.io/badge/author-nsoojin-red.svg)](https://www.linkedin.com/in/soojinro) [![python](https://img.shields.io/badge/python-3.6-blue.svg)]() [![license](https://img.shields.io/github/license/mashape/apistatus.svg)]() [![contribution](https://img.shields.io/badge/contribution-welcome-brightgreen.svg)]()
![title_image](title_image.png)
## 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](https://www.continuum.io/downloads).
## 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,
```matlab
>> size(theta)
>> (2, 1)
```
Now, it is
```python
>>> theta.shape
>>> (2, )
```
* numpy.matrix is never used, just plain ol' numpy.ndarray
## Contents
#### [Exercise 1](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex1)
* Linear Regression
* Linear Regression with multiple variables
#### [Exercise 2](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex2)
* Logistic Regression
* Logistic Regression with Regularization
#### [Exercise 3](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex3)
* Multiclass Classification
* Neural Networks Prediction fuction
#### [Exercise 4](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex4)
* Neural Networks Learning
#### [Exercise 5](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex5)
* Regularized Linear Regression
* Bias vs. Variance
#### [Exercise 6](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex6)
* Support Vector Machines
* Spam email Classifier
#### [Exercise 7](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex7)
* K-means Clustering
* Principal Component Analysis
#### [Exercise 8](https://github.com/nsoojin/coursera-ml-py/tree/master/machine-learning-ex8)
* Anomaly Detection
* Recommender Systems
## Solutions
You can check out my implementation of the assignments [here](https://github.com/nsoojin/coursera-ml-py-sj). I tried to vectorize all the solutions.
没有合适的资源?快使用搜索试试~ 我知道了~
吴恩达机器学习课后作业py版.zip
共112个文件
py:71个
mat:18个
txt:10个
需积分: 5 0 下载量 72 浏览量
2024-04-28
22:38:06
上传
评论
收藏 29.69MB ZIP 举报
温馨提示
机器学习是一门多领域交叉学科,涉及概率论、统计学、逼近论、凸分析、算法复杂度理论等多门学科。它专门研究计算机怎样模拟或实现人类的学习行为,以获取新的知识或技能,重新组织已有的知识结构使之不断改善自身的性能。机器学习是人工智能的核心,是使计算机具有智能的根本途径。 机器学习的发展历程可以追溯到20世纪50年代,当时Arthur Samuel在IBM开发了第一个自我学习程序,一个西洋棋程序,这标志着机器学习的起步。随后,Frank Rosenblatt发明了第一个人工神经网络模型——感知机。在接下来的几十年里,机器学习领域取得了许多重要的进展,包括最近邻算法、决策树、随机森林、深度学习等算法和技术的发展。 机器学习有着广泛的应用场景,如自然语言处理、物体识别和智能驾驶、市场营销和个性化推荐等。通过分析大量的数据,机器学习可以帮助我们更好地理解和解决各种复杂的问题。例如,在自然语言处理领域,机器学习技术可以实现机器翻译、语音识别、文本分类和情感分析等功能;在物体识别和智能驾驶领域,机器学习可以通过训练模型来识别图像和视频中的物体,并实现智能驾驶等功能;在市场营销领域,机器学习可以帮助企业分析用户的购买行为和偏好,提供个性化的产品推荐和定制化的营销策略。 总的来说,机器学习是一个快速发展且充满潜力的领域,它正在不断地改变我们的生活和工作方式。随着技术的不断进步和应用场景的不断扩展,相信机器学习将会在未来发挥更加重要的作用。
资源推荐
资源详情
资源评论
收起资源包目录
吴恩达机器学习课后作业py版.zip (112个子文件)
findClosestCentroids 0B
LICENSE 1KB
ex7faces.mat 10.52MB
ex3data1.mat 7.16MB
ex4data1.mat 7.16MB
spamTrain.mat 419KB
ex8_movies.mat 218KB
ex8_movieParams.mat 196KB
spamTest.mat 110KB
ex8data2.mat 91KB
ex3weights.mat 78KB
ex4weights.mat 78KB
bird_small.mat 45KB
ex8data1.mat 9KB
ex6data2.mat 7KB
ex6data3.mat 6KB
ex7data2.mat 5KB
ex5data1.mat 1KB
ex7data1.mat 995B
ex6data1.mat 981B
README.md 3KB
ex7.pdf 699KB
ex6.pdf 571KB
ex1.pdf 478KB
ex2.pdf 421KB
ex8.pdf 415KB
ex4.pdf 348KB
ex3.pdf 287KB
ex5.pdf 183KB
title_image.png 674KB
bird_small.png 32KB
ex8_cofi.py 7KB
ex4.py 7KB
ex7_pca.py 7KB
ex5.py 6KB
ex7.py 5KB
ex2.py 4KB
ex1_multi.py 4KB
ex8.py 4KB
ex6.py 4KB
ex2_reg.py 3KB
ex6_spam.py 3KB
ex3_nn.py 3KB
nncostfunction.py 3KB
processEmail.py 3KB
ex1.py 2KB
ex3.py 2KB
emailFeatures.py 2KB
cofiCostFunction.py 2KB
runkMeans.py 1KB
displayData.py 1KB
displayData.py 1KB
displayData.py 1KB
checkCostFunction.py 1KB
learningCurve.py 1KB
oneVsAll.py 1KB
gradientDescent.py 1KB
plotDecisionBoundary.py 1KB
featureNormalize.py 1KB
validationCurve.py 1KB
selectThreshold.py 1021B
checkNNGradients.py 949B
predictOneVsAll.py 844B
pca.py 789B
recoverData.py 749B
plotData.py 723B
findClosestCentroids.py 703B
projectData.py 696B
linearRegCostFunction.py 635B
visualizeFit.py 618B
computeCentroids.py 610B
estimateGaussian.py 608B
predict.py 535B
randInitializeWeights.py 524B
predict.py 514B
trainLinearReg.py 499B
costFunctionReg.py 496B
lrCostFunction.py 493B
costFunction.py 487B
polyFeatures.py 451B
gaussianKernel.py 430B
computeCost.py 419B
kMeansInitCentroids.py 414B
sigmoidgradient.py 402B
computeNumericalGradient.py 401B
computeNumericalGradient.py 401B
multivariateGaussian.py 375B
visualizeBoundary.py 371B
plotData.py 369B
plotData.py 368B
plotFit.py 335B
normalEqn.py 316B
mapFeature.py 314B
sigmoid.py 299B
predict.py 292B
normalizeRatings.py 288B
loadMovieList.py 268B
debugInitializeWeights.py 179B
featureNormalize.py 163B
featureNormalize.py 163B
共 112 条
- 1
- 2
资源评论
生瓜蛋子
- 粉丝: 3824
- 资源: 5216
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功