摘要: #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 阅读(692) 评论(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 阅读(5351) 评论(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 阅读(2816) 评论(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 阅读(731) 评论(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 阅读(2099) 评论(0) 推荐(0) 编辑