上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 78 下一页
摘要: # -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import numpy as np from sklearn.preprocessing import StandardScaler #模块1 标准化 #无量纲化使不同规格的数据转换到同一规格。常见的无量纲化方法有标准化和区间缩放法... 阅读全文
posted @ 2016-08-10 20:28 qqhfeng16 阅读(586) 评论(0) 推荐(0) 编辑
摘要: https://github.com/jannson/yaha 阅读全文
posted @ 2016-08-10 09:21 qqhfeng16 阅读(1710) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Wed Aug 10 08:10:35 2016 @author: Administrator """ ''' 关于:cross_validation.scores 此处cross_validation.scores并不是cross_validation的scores, 而是分类函数(本文是clf,svm)的scor... 阅读全文
posted @ 2016-08-10 08:34 qqhfeng16 阅读(709) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Tue Aug 09 23:04:51 2016 @author: Administrator """ import numpy as np ''' python中的list是python的内置数据类型,list中的数据类不必相同的,而array的中的类型必须全部相同。 在list中的数据类型保存的是数据的存... 阅读全文
posted @ 2016-08-10 00:20 qqhfeng16 阅读(3966) 评论(0) 推荐(1) 编辑
摘要: #Pipeline 无预测函数,他用管道中最后一个预测函数 Applies transforms to the data, and the predict method of the final estimator. Valid only if the final estimator impleme 阅读全文
posted @ 2016-08-09 22:59 qqhfeng16 阅读(687) 评论(0) 推荐(0) 编辑
摘要: RandomizedSearchCV took 8.64 seconds for 20 candidates parameter settings.[mean: 0.78075, std: 0.00987, params: {'bootstrap': True, 'min_samples_leaf' 阅读全文
posted @ 2016-08-09 22:54 qqhfeng16 阅读(5345) 评论(0) 推荐(0) 编辑
摘要: scores : array of float, shape=(len(list(cv)),) Array of scores of the estimator for each run of the cross validation. 关于scores:http://scikit-learn.or 阅读全文
posted @ 2016-08-09 22:37 qqhfeng16 阅读(2811) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Tue Aug 09 22:17:32 2016 @author: Administrator """ #Python的zip函数 #zip函数接受任意多个(包括0个和1个)序列作为参数,返回一个tuple列表。具体意思不好用文字来表述,直接看示例: #注意:zip函数后,值是list类型 #示例1 zip的... 阅读全文
posted @ 2016-08-09 22:29 qqhfeng16 阅读(728) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Tue Aug 09 16:15:03 2016 @author: Administrator """ import numpy as np import pandas as pd from sklearn.tree import DecisionTreeClassifier from sklearn.cross_... 阅读全文
posted @ 2016-08-09 18:01 qqhfeng16 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 关于随机森林样本和分类目标的示例注意: 1.目标类别是3个以上(逻辑分类只能两个) 2.自变量X以行为单位 3.因变量y以列为单位(每一个值对应X的一行) 4.其它不用管了,交给程序去吧# -*- coding: utf-8 -*- """ Created on Tue Aug 09 17:40:04 2016 @author: Administrator """ #... 阅读全文
posted @ 2016-08-09 18:00 qqhfeng16 阅读(2094) 评论(0) 推荐(0) 编辑
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 78 下一页