10 2019 档案

摘要:本代码来源自:https://github.com/Erikfather/Decision_tree-python 1.数据集描述 为了方便,我对数据集进行如下处理: 在编写代码之前,我们先对数据集进行属性标注。 (0)年龄:0代表青年,1代表中年,2代表老年; (1)有工作:0代表否,1代表是; 阅读全文
posted @ 2019-10-31 16:39 RamboBai 阅读(4330) 评论(0) 推荐(0)
摘要:本代码参考自:https://github.com/lawlite19/MachineLearning_Python/blob/master/LogisticRegression/LogisticRegression.py 1. 读取数据集 2. 查看原始数据的分布 结果: 3. 将数据映射为多项式 阅读全文
posted @ 2019-10-30 18:46 RamboBai 阅读(3364) 评论(0) 推荐(0)
摘要:本代码参考自:https://github.com/lawlite19/MachineLearning_Python#%E4%B8%80%E7%BA%BF%E6%80%A7%E5%9B%9E%E5%BD%92 首先,线性回归公式:y = X*W +b 其中X是m行n列的数据集,m代表样本的个数,n代 阅读全文
posted @ 2019-10-30 13:45 RamboBai 阅读(2241) 评论(0) 推荐(0)