![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
吴恩达机器学习
Chos1nz
这个作者很懒,什么都没留下…
展开
-
2022吴恩达机器学习specialization Week 2 practice lab: Linear regression
2022吴恩达机器学习machine learning specialization第一部分week2的practice lab:Linear Regression原创 2022-06-18 18:15:20 · 1177 阅读 · 3 评论 -
Coursera吴恩达机器学习ML-week4-ex3多分类及神经网络-python实现
很多函数或者内部的一些计算其实没用,但是因为是对应matlab上的作业,所以有的部分会显得多余 不过对于图像的呈现就略过了,个人认为还是先熟悉算法为主,这样进度也快点 ####task1多分类 task1多分类 import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib from scipy.io import loadmat from sklearn.metrics import clas原创 2021-08-15 01:49:50 · 191 阅读 · 0 评论 -
Coursera吴恩达机器学习ML-week3-ex2逻辑回归(未标准化)-python实现
import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import classification_report from sklearn import preprocessing scale = False #是否进行标准化 data = np.genfromtxt("ex2data1.txt",delimiter = ",") x = data[:,0:2] y = data[:,2] def plot():原创 2021-08-10 22:32:55 · 265 阅读 · 0 评论 -
Coursera吴恩达机器学习ML-week2-ex1多变量线性回归-python实现
import numpy as np import matplotlib.pyplot as plt import pandas as pd def compute_loss(X,y,theta): loss = (X.dot(theta.T)-y)**2 return loss.sum()/2/m def gradient_descent(X_X,y,theta,alpha,epochs): for i in range(epochs): a = t原创 2021-08-05 12:53:53 · 355 阅读 · 0 评论 -
Coursera吴恩达机器学习ML-week2-ex1单变量线性回归-python实现
import numpy as np import matplotlib.pyplot as plt import pandas as pd def compute_loss(X_X,y,theta): loss = (X_X.dot(theta.T)-y)**2 return loss.sum()/(2*m) def gradient_descent(X_X,y,theta,alpha,epochs): for i in range(epochs): if i原创 2021-08-05 00:53:35 · 342 阅读 · 0 评论