摘要: 转自: https://github.com/zhaozhiyong19890102/Python-Machine-Learning-Algorithm 阅读全文
posted @ 2018-04-21 11:19 路边的十元钱硬币 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Logistics Regression 二分类问题。 模型 线性模型 响应 sigmoid 损失函数(显示) 最小均方 优化方法 BGD 例子: #coding utf-8 import numpy as np def load_data(file_name): feature_data = [] 阅读全文
posted @ 2018-04-21 11:17 路边的十元钱硬币 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 字符串.join(字符串序列) 一目了然: 参考: http://www.runoob.com/python/att-string-join.html 阅读全文
posted @ 2018-04-21 09:55 路边的十元钱硬币 阅读(195) 评论(0) 推荐(0) 编辑
摘要: shape 是返回 np.mat 的形状的。 1. 作为 mat 的成员变量,a.shape 2. 作为 np 的成员函数,np.shape 阅读全文
posted @ 2018-04-21 09:48 路边的十元钱硬币 阅读(208) 评论(0) 推荐(0) 编辑