![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习实战
格林黄
这个作者很懒,什么都没留下…
展开
-
单层感知器实践
import numpy as npimport matplotlib.pyplot as plt#输入数据X = np.array([[3,3], [4,3], [1,1], [0,2]])# 添加偏置项X = np.concatenate((np.ones((4,1)),X),axis=1)p...原创 2020-04-29 19:45:55 · 280 阅读 · 0 评论 -
sklearn-多项式回归
import numpy as npimport matplotlib.pyplot as pltfrom sklearn.preprocessing import PolynomialFeaturesfrom sklearn.linear_model import LinearRegression#载入数据data = np.genfromtxt("job.csv",delim...原创 2020-04-02 19:15:08 · 395 阅读 · 0 评论 -
k-近邻算法
#科学计算包from numpy import *# 运算符模块import operatordef createDataSet(): group = array([ [1.0,1.1], [1.0,1.0], [0,0], [0,0.1], [0,0.2] ]) #label包含每个...原创 2020-02-06 20:35:58 · 205 阅读 · 0 评论