幽魂倪

导航

从头开始使用梯度下降优化在Python中实现多元线性回归(代码)

import matplotlib.pyplot as pltimport numpy as npdef hypothesis(theta, X, n): h = np.ones((X.shape[0],1)) theta = theta.reshape(1,n+1) for i in range(

posted on 2020-06-30 09:31  幽魂倪  阅读(217)  评论(0编辑  收藏  举报