![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
Carlos橘子柠檬
在读
展开
-
【机器学习】3-5-1 K均值聚类
#3-5-1K均值聚类import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.cluster import KMeansfrom sklearn.datasets import load_breast_cancerfrom sklearn.datase...原创 2019-12-13 18:10:51 · 283 阅读 · 0 评论 -
【机器学习】3-5-2 凝聚聚类
#3-5-1K均值聚类import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom numpy.core.umath_tests import inner1dfrom mpl_toolkits.mplot3d import Axes3D,axes3dfrom scipy.c...原创 2019-12-16 17:08:01 · 217 阅读 · 0 评论 -
【机器学习】无监督学习与预处理 3-3 预处理与缩放
#应用数据变换import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.datasets import load_breast_cancerfrom sklearn.datasets import make_moonsfrom sklearn.datas...原创 2019-11-17 15:57:21 · 376 阅读 · 0 评论 -
【机器学习】3-4-2 流行学习
#3-4-2流行学习import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.datasets import load_breast_cancerfrom sklearn.datasets import make_moonsfrom sklearn.da...原创 2019-11-30 17:21:57 · 151 阅读 · 0 评论 -
【机器学习】无监督学习与预处理 3-4-1 主成分分析
#主成分分析import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.datasets import load_breast_cancerfrom sklearn.datasets import make_moonsfrom sklearn.datase...原创 2019-11-20 19:18:50 · 390 阅读 · 0 评论 -
【机器学习】3-5-4 聚类算法的对比与评估
#3-5-4聚类算法的对比与评估import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom numpy.core.umath_tests import inner1dfrom mpl_toolkits.mplot3d import Axes3D,axes3dfrom sc...原创 2019-12-20 23:03:46 · 465 阅读 · 0 评论 -
【机器学习】3-5-3 DBSCAN具有噪声的基于密度空间聚类
#3-5-3DBSCAN具有噪声的基于密度空间聚类import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom numpy.core.umath_tests import inner1dfrom mpl_toolkits.mplot3d import Axes3D,axes3...原创 2019-12-16 17:35:46 · 464 阅读 · 0 评论 -
【机器学习】监督学习算法 2.4 不确定度估计
#不确定度估计import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.datasets import load_breast_cancerfrom sklearn.datasets import make_moonsfrom sklearn.datas...原创 2019-11-07 22:38:50 · 437 阅读 · 0 评论 -
【机器学习】监督学习算法 2.3.8 神经网络
import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.datasets import load_breast_cancerfrom sklearn.datasets import make_moonsfrom sklearn.datasets impo...原创 2019-11-06 21:53:25 · 427 阅读 · 0 评论 -
【机器学习】基于python的简易动物识别算法(知识工程)
#十个特征,4类动物animal = ['鸡','鸭','鱼','狗']dict_feature = {'1':'有羽毛','2':'不会飞','3':'会下蛋', '4':'吃肉','5':'有犬齿','6':'有爪', '7':'有鱼鳞','8':'会游泳','9':'有鳃', '10':'跑得快'} dog_fe...原创 2019-11-06 17:26:44 · 4361 阅读 · 0 评论 -
【机器学习】监督学习算法 2.3.7 核支持向量机
#有核支持向量机import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.tree import DecisionTreeClassifierfrom sklearn.datasets import load_breast_cancerfrom skle...原创 2019-11-06 17:23:28 · 382 阅读 · 0 评论 -
【机器学习】监督学习算法 2.3.6 决策树集成
#决策树集成import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.tree import DecisionTreeClassifierfrom sklearn.datasets import load_breast_cancerfrom sklear...原创 2019-11-05 20:18:50 · 317 阅读 · 0 评论 -
【机器学习】监督学习算法 2.3.5 决策树
全文代码如下需要在github上下载相关数据集,下载整个包,在data中找到ram_prices.csv即可点这下载#决策树import mglearnimport numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn.tree import DecisionTreeClassifier...原创 2019-11-01 22:53:46 · 1198 阅读 · 3 评论 -
【机器学习】监督学习算法2.3.3-线性回归、正则化、多分类线性模型
全文代码如下:import mglearnimport joblibimport numpy as npimport matplotlib.pyplot as pltfrom sklearn.linear_model import LinearRegressionfrom sklearn.model_selection import train_test_split#线性回归x,...原创 2019-10-29 20:08:30 · 237 阅读 · 0 评论 -
【机器学习】监督学习算法 2.3.2 K邻近、二分类、回归
全文代码如下:import matplotlib.pyplot as pltimport mglearnimport numpy as npfrom sklearn.model_selection import train_test_splitfrom sklearn.neighbors import KNeighborsClassifierx,y = mglearn.dataset...原创 2019-10-24 11:30:16 · 330 阅读 · 0 评论 -
【机器学习】监督学习算法 2.3.1 二分类、回归算法、威斯康辛乳腺癌、波士顿房价
import mglearn import matplotlib.pyplot as pltx,y = mglearn.datasets.make_forge()mglearn.discrete_scatter(x[:,0],x[:,1],y)plt.legend(['Class 0','Class 1'],loc = 4)plt.xlabel('first feature')pl...原创 2019-10-23 21:38:28 · 443 阅读 · 0 评论 -
【机器学习】鸢尾花分类(基于scikit-learn)
更新INGfrom sklearn.datasets import load_irisfrom sklearn.model_selection import train_test_splitimport pandas as pdimport mglearnimport matplotlib.pyplot as pltiris_dataset = load_iris()print(...原创 2019-10-21 23:10:42 · 2118 阅读 · 0 评论 -
【机器学习】典型例子-鸢尾花分类(Scikit-Learn)
一、获取数据集用Scikit-Learn自带的鸢尾花数据集。from sklearn.datasets import load_irisiris_dataset = load_iris()二、检查数据该数据集其实是已经经过多次检验过的经典的数据集,并不需要检查数据这个步骤。但是我们还是按照一般步骤来,假装我们不知道该数据集里是否有异常值和特殊值,此时,就可以将数据可视化。一种可视化的方...原创 2019-10-18 22:02:59 · 3950 阅读 · 1 评论