![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习笔记
勤劳的约德尔人
机器人技术/代码菜鸡/芯片设计初学者
展开
-
天池_二手车交易价格预测
Datawhale 组队学习Day0Github: https://github.com/datawhalechina/team-learning.公众号:Datawhale内容:零基础入门数据挖掘 - 二手车交易价格预测赛题链接天池: https://tianchi.aliyun.com/competition/entrance/231784/introduction进群、报名、dow...原创 2020-03-23 20:33:50 · 2169 阅读 · 0 评论 -
机器学习笔记-正则化线型回归与逻辑回归
机器学习笔记-损失函数与正规方程的代码表示机器学习笔记-逻辑回归(Logistic Regression)损失函数代码表示# 正则化模型import numpy as npdef sigmoid(z): return 1 / (1 + np.exp(-z))正则化线型回归# 正则化线性回归def linearcostReg(theta, X, y, learningRat...原创 2019-05-30 11:27:50 · 217 阅读 · 0 评论 -
机器学习笔记-损失函数与正规方程的代码表示
损失函数的代码表示import numpy as npdef computeCost(X, y, theta): inner = np.power(((X*theta.T) - y), 2) return np.sum(inner) / (2*len(X))正规方程的代码表示import numpy as npdef normalEqn(X, y): theta...原创 2019-05-29 10:41:59 · 470 阅读 · 0 评论 -
机器学习笔记-逻辑回归(Logistic Regression)损失函数代码表示
以吴恩达老师的课程为例损失函数为带入逻辑回归的损失函数:有即Python代码的实现import numpy as npdef cost(theta, X, y): theta = np.matrix(theta) X = np.matrix(X) y = np.matrix(y) first = np.multiply(-y, np.log(s...原创 2019-05-29 10:54:05 · 1834 阅读 · 0 评论