摘要:
#Pipeline 无预测函数,他用管道中最后一个预测函数 Applies transforms to the data, and the predict method of the final estimator. Valid only if the final estimator impleme 阅读全文
摘要:
RandomizedSearchCV took 8.64 seconds for 20 candidates parameter settings.[mean: 0.78075, std: 0.00987, params: {'bootstrap': True, 'min_samples_leaf' 阅读全文
摘要:
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 阅读全文
摘要:
# -*- coding: utf-8 -*- """ Created on Tue Aug 09 22:17:32 2016 @author: Administrator """ #Python的zip函数 #zip函数接受任意多个(包括0个和1个)序列作为参数,返回一个tuple列表。具体意思不好用文字来表述,直接看示例: #注意:zip函数后,值是list类型 #示例1 zip的... 阅读全文
摘要:
# -*- 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_... 阅读全文
摘要:
关于随机森林样本和分类目标的示例注意: 1.目标类别是3个以上(逻辑分类只能两个) 2.自变量X以行为单位 3.因变量y以列为单位(每一个值对应X的一行) 4.其它不用管了,交给程序去吧# -*- coding: utf-8 -*- """ Created on Tue Aug 09 17:40:04 2016 @author: Administrator """ #... 阅读全文