教程来自 https://www.pyimagesearch.com/2019/01/14/machine-learning-in-python/
主要是采用 scikit-learn 和 Keras 两个库来实现以下几种常见的机器学习算法:
- KNN
- 朴素贝叶斯
- 逻辑回归
- SVM
- 决策树
- 随机森林
- 感知机
- 多层前向网络
- CNNs
实验的数据集是:
- Iris(鸢尾花) 数据集
- 3-scenes 图像数据集,从 Modeling the shape of the scene: a holistic representation of the spatial envelope 发布的 8 场景数据集采样得到
其中,Iris 数据集直接通过 sklearn.datasets() 导入 load_iris() 即可导入,而第二个数据集可以从原文中下载获取,或通过百度网盘下载,链接如下:
链接:https://pan.baidu.com/s/16Atyd6f9zrYZd1eQ3GlTLA
提取码:olj0