- 博客(4)
- 收藏
- 关注
原创 将文本中的多余空格去掉,做成只有一行的文本
h = []with open(r'C:\Users\duu\Desktop\新建文件夹\2.txt', 'r') as f: for line in f.readlines(): line = line.strip() # 切掉每行两边多余空格 odom = line.split() # 每行按空格或(\t)划分,odom成为一个新的列表 ...
2018-11-12 12:22:44
355
原创 MachineLearning(吴恩达) 2.单变量线性回归
代价函数及简化版线性回归的目标函数(参数θ_0 = 0 , 简化版)线性回归的代价函数梯度下降法在计算其他情况时,只能算出局部最优解。线性回归的算法线性回归的模型是个凸函数,用梯度下降法可算出全局最优解。迭代计算,当偏导等于0时即为目标函数。...
2018-11-05 22:01:33
138
原创 MachineLearning(吴恩达) 1.初识机器学习
machine learning definition· Arthur Samuel(1959). machine learning: filed of study that gives computers the ability to learn without being explicitly programmed. (写了个跳棋程序)· Tom Mitchell(1988...
2018-11-05 15:58:14
264
原创 第一篇博客
哈哈方法def num(self): self += 1 x = self return xnumb = num(1)print(numb)
2018-11-05 14:07:50
185
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅