摘要: 知识点汇总 作业内容:用logistic回归对猫进行分类 numpy知识点: 1. 查看矩阵维度: x.shape 2. 初始化0矩阵: np.zeros((dim1, dim2)) 3. 去掉矩阵中大小是1的维度: x = np.squeeze(x) 4. 将(a, b, c, d)矩阵转换为(b 阅读全文
posted @ 2018-01-29 01:22 匡子语 阅读(602) 评论(0) 推荐(0)
摘要: 知识点梳理 python工具使用: 1. sklearn: 数据挖掘,数据分析工具,内置logistic回归 2. matplotlib: 做图工具,可绘制等高线等 3. 绘制散点图: plt.scatter(X[0, :], X[1, :], c=np.squeeze(Y), s=40, cmap 阅读全文
posted @ 2018-01-29 00:31 匡子语 阅读(1503) 评论(0) 推荐(0)