摘要: 实用例子 from sklearn import datasets import matplotlib.pyplot as plt # # 簇 # x, y = datasets.make_blobs(n_samples=1000, n_features=4, centers=4, cluster_ 阅读全文
posted @ 2020-06-20 16:52 市丸银 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、简易安装模块 conda install scikit-learn 失败看下面链接 https://sklearn.apachecn.org/docs/master/62.html 2、整体过程(与tensorflow相似) 1)、获取数据 2)、建模 3)、训练模型 4)、测试模型 3、简单案 阅读全文
posted @ 2020-06-20 16:41 市丸银 阅读(202) 评论(0) 推荐(0) 编辑
摘要: path = r"C:\Users\wuhao\.keras\datasets\mnist.npz" def load_data(path): with np.load(path) as f: x_train, y_train = f['x_train'], f['y_train'] x_test, 阅读全文
posted @ 2020-06-20 14:32 市丸银 阅读(1413) 评论(0) 推荐(0) 编辑