![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
jeffery0628
这个作者很懒,什么都没留下…
展开
-
sklearn algorithm cheat-sheet
sklearn algorithm cheat-sheet原创 2018-05-20 09:10:00 · 1181 阅读 · 0 评论 -
sklearn 的数据库
from sklearn import datasetsfrom sklearn.linear_model import LinearRegressionimport matplotlib.pyplot as plt# 加载数据集 房价loaded_data = datasets.load_boston()data_X = loaded_data.datadata_y = load...原创 2018-05-20 09:37:35 · 308 阅读 · 0 评论 -
model 常用属性和功能
from sklearn import datasetsfrom sklearn.linear_model import LinearRegressionimport matplotlib.pyplot as plt# 加载数据集 房价loaded_data = datasets.load_boston()data_X = loaded_data.datadata_y = load...原创 2018-05-20 09:46:48 · 2625 阅读 · 0 评论 -
sklearn normalization 数据标准化
from sklearn import preprocessing# train data 和test_data 分开的模块from sklearn.cross_validation import train_test_split# 用于生成一些 classification的数据from sklearn.datasets.samples_generator import make_cla...原创 2018-05-20 10:11:41 · 1301 阅读 · 0 评论 -
sklearn cross_validation交叉验证
from sklearn import datasetsfrom sklearn.cross_validation import train_test_splitfrom sklearn.neighbors import KNeighborsClassifier# cross_validation交叉验证iris = datasets.load_iris()X = iris.data...原创 2018-05-20 12:34:46 · 647 阅读 · 0 评论 -
sklearn 保存训练模型的两种方法
from sklearn import svmfrom sklearn import datasetsclf = svm.SVC()iris = datasets.load_iris()X, y = iris.data, iris.targetclf.fit(X,y)# method:1 pickle# saveimport pickle# with open('save/c...原创 2018-05-20 12:45:39 · 4510 阅读 · 0 评论