E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
random_state
python数据挖掘--超参寻优篇(附方法和代码)
fromsklearn.model_selectionimportcross_val_score,KFold定义交叉验证规则n_folds=5rmse=[]defrmsle_cv(model):kf=KFold(n_folds,shuffle=True,
random_state
睡醒了的小码媛
·
2020-06-29 03:57
机器学习
python数据分析
python数据挖掘---建模篇(附代码)
数据挖掘路上点点滴滴,记录下机器学习常用模型(附代码),持续更新数据划分x_train1,x_test1,y_train1,y_test1=train_test_split(x,y,train_size=0.8,
random_state
睡醒了的小码媛
·
2020-06-29 03:57
机器学习
python数据分析
【svm.LinearSVC】sklearn svm.LinearSVC的参数说明
tol=0.0001,C=1.0,multi_class=’ovr’,fit_intercept=True,intercept_scaling=1,class_weight=None,verbose=0,
random_state
suu_fxhong
·
2020-06-29 02:37
sklearn
决策树的实现和排序重要特征
fromsklearn.treeimportDecisionTreeClassifierfromadspy_shared_utilitiesimportplot_feature_importancestree=DecisionTreeClassifier(
random_state
weixin_34095889
·
2020-06-28 11:53
sklearn的train_test_split
X_train,X_test,y_train,y_test=cross_validation.train_test_split(train_data,train_target,test_size=0.3,
random_state
风景不在对岸wj
·
2020-06-27 00:36
python笔记
使用python绘制cdf的多种方法
numpy数组,如下://Anhighlightedblockrng=np.random.RandomState(seed=12345)samples=stats.norm.rvs(size=1000,
random_state
站在风口的骚人
·
2020-06-26 19:37
python
pandas.DataFrame.sample函数抽样划分Pascal voc数据 训练集验证集测试集
先查sample函数的使用方法DataFrame.sample(n=None,frac=None,replace=False,weights=None,
random_state
=None,axis=None
shiheyingzhe
·
2020-06-26 09:04
深度学习
SVM 多分类分类边界可视化
importnumpyasnpimportmatplotlib.pyplotaspltfromsklearnimportsvmfromsklearn.datasetsimportmake_blobsX,y=make_blobs(n_samples=180,centers=5,
random_state
shejiangao
·
2020-06-26 08:18
人工智能
使用sklearn生成数据集
sklearn.datasets.make_blobs(n_samples=100,n_features=2,centers=3,cluster_std=1.0,center_box=(-10.0,10.0),shuffle=True,
random_state
Minkowski_lin
·
2020-06-26 00:54
sklearn
数据分析
Python
LogisticRegression在sklearn中的参数详解
LogisticRegression(penalty='l2',dual=False,tol=0.0001,C=1.0,fit_intercept=True,intercept_scaling=1,class_weight=None,
random_state
wyh_wen
·
2020-06-25 23:45
机器学习
sklearn
python
estimate_bandwidth
sklearn.cluster.estimate_bandwidth(X,quantile=0.3,n_samples=None,
random_state
=0,n_jobs=1)字面意思:预估带宽Estimatethebandwidthtousewiththemean-shiftalgorithm
你说你要一场
·
2020-06-25 17:16
python--DataFrame随机抽样
官方文档解释在这:sampleDataFrame.sample(n=None,frac=None,replace=False,weights=None,
random_state
=None,axis=None
碧空之戈
·
2020-06-25 15:47
Python
train_test_split(),随机划分训练集和测试集的函数
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(train_data,train_lable,test_size=0.3,
random_state
Hinton-wu
·
2020-06-25 14:17
python
python 利用sklearn.cross_validation的KFold构造交叉验证数据集
参数(n,n_folds=3,shuffle=False,
random_state
=None)n为总数n_folds为分为多少个交叉验证集shuffle为是否随机
random_state
设置随机因子fromsklearn.cross_validationimportKFoldimportnumpyasn
HxShine
·
2020-06-24 23:17
python
python imblearn toolbox 解决数据不平衡问题(二)——over-sampling上采样
基本用法框架fromimblearn.over_samplingimportRandomOverSamplerros=RandomOverSampler(
random_state
=0)X_resampled
mathlmj
·
2020-06-24 13:28
Python中决策树分类器DecisionTreeClassifier参数和经验总结
max_depth=None,min_samples_split=2,min_samples_leaf=1,min_weight_fraction_leaf=0.0,max_features=None,
random_state
linzhjbtx
·
2020-06-24 05:16
数据建模和机器学习
构造随机正交矩阵
importnumpyasnpfromscipy.statsimportortho_groupd=3seed=1size=2a,b=np.float32(ortho_group.rvs(size=size,dim=d,
random_state
dejing6575
·
2020-06-23 03:26
安装更新sklearn包
fromsklearn.model_selectionimporttrain_test_splitfromsklearn.datasetsimportmake_moonsX,y=make_moons(n_samples=500,noise=0.30,
random_state
别致的SmallSix
·
2020-06-21 07:04
sklearn中的参数含义
python
机器学习
泰坦尼克号决策树预测(附:代码,常用参数,数据集)
win10+python3.7,不同环境可能会有些许差异决策树APIsklearn.tree.DecisionTreeClassifier(criterion=‘gini’,max_depth=None,
random_state
me_to_007
·
2020-06-21 03:28
Python
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
何威1702
·
2020-06-14 21:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
当地一个比较帅的人
·
2020-06-14 20:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
俞英杰
·
2020-05-23 21:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
kzg
·
2020-05-23 21:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
ling9709
·
2020-05-23 21:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
广商吴彦祖
·
2020-05-23 20:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
162
·
2020-05-23 20:00
第十三次作业-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
、秋天
·
2020-05-23 20:00
垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
宋思康
·
2020-05-23 19:00
13、垃圾邮件2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
mean1
·
2020-05-23 19:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
真真不知
·
2020-05-23 18:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
邓伟江
·
2020-05-23 17:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
缪孝文
·
2020-05-23 14:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
321木头人123
·
2020-05-23 05:00
机器学习十三——垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
xiaoAP
·
2020-05-23 03:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
EIYO
·
2020-05-22 15:00
13-垃圾邮件分类2
html3.数据划分—训练集和测试集数据划分#new_data是要划分的样本特征集--邮件内容,sms_label是划分的样本结果集--垃圾邮件还是普通邮件#test_size是样本占比,选20%来测试,
random_state
Qing#Ci
·
2020-05-22 15:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
Chaiyeh
·
2020-05-22 12:00
13-垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
Rick00
·
2020-05-22 11:00
机器学习13- 垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
喝Pure牛奶
·
2020-05-22 00:00
13 垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
linyanli
·
2020-05-21 11:00
第十三次作业----垃圾邮件分类2
fromsklearn.model_selectionimporttrain_test_splitx_train,x_test,y_train,y_test=train_test_split(data,target,test_size=0.2,
random_state
codekid
·
2020-05-21 08:00
成功解决TypeError: ‘method’ object is not subscriptable
X_test,y_train,y_test=train_test_split(local_data.drop['number'],local_data['number'],test_size=0.1,
random_state
叫我李嘉图
·
2020-05-03 21:40
Bug
python
Kmeans
n_clusters=8,init='k-means++',n_init=10,max_iter=300,tol=0.0001,precompute_distances='auto',verbose=0,
random_state
似海深蓝
·
2020-04-28 16:59
python机器学习7:数据预处理
fromsklearn.datasetsimportmake_blobsimportmatplotlib.pyplotaspltX,y=make_blobs(n_samples=40,centers=2,
random_state
勇于自信
·
2020-04-08 10:31
SKlearn中分类决策树的重要参数详解
max_depth=None,min_samples_split=2,min_samples_leaf=1,min_weight_fraction_leaf=0.0,max_features=None,
random_state
CDA数据分析师培训
·
2020-04-01 06:47
KFold
4.PNGParamtersn_splits:int,默认3分割数据的份数,至少为2shuffle:布尔,可选分割数据之前是否打乱数据
random_state
:int,RandomState实例或者None
yuriy0_0
·
2020-03-25 14:18
做集成学习的时候出现`AttributeError: 'list' object has no attribute 'set_params'`不知道怎么解决
list'objecthasnoattribute'set_params'不知道怎么解决fromsklearn.ensembleimportAdaBoostRegressorestimator=[ExtraTreesRegressor(
random_state
chentao326
·
2020-03-21 14:06
python
大数据
机器学习
python
使用python绘制cdf的多种实现方法
numpy数组,如下://Anhighlightedblockrng=np.random.RandomState(seed=12345)samples=stats.norm.rvs(size=1000,
random_state
站在风口的骚人
·
2020-02-25 16:38
数据集切分
fromsklearn.model_selectionimporttrain_test_splitXtrain,Xtest,Ytrain,Ytest=train_test_split(X,Y,test_size=0.3,
random_state
少年奶油喵
·
2020-02-20 23:00
2018-10-02
fromsklearn.treeimportDecisionTreeClassifierdt_model=DecisionTreeClassifier(criterion='entropy',
random_state
PuyuaN
·
2020-02-12 04:14
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他