导航

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页

2018年11月1日

摘要: kappa计算结果为-1~1,通常kappa是落在 0~1 间,可分为五组来表示不同级别的一致性: 计算公式: po是每一类正确分类的样本数量之和除以总样本数. 假设每一类的真实样本个数分别为a1,a2,...,aC,预测出来的每一类的样本个数分别为b1,b2,...,bC,总样本个数为n,则有:p 阅读全文

posted @ 2018-11-01 10:02 wzd321 阅读(1869) 评论(0) 推荐(0)

2018年10月31日

摘要: from sklearn.svm import SVC from sklearn.datasets import make_classification import numpy as np X,y = make_classification() def plot_validation_curve(estimator,X,y,param_name="gamma", ... 阅读全文

posted @ 2018-10-31 22:13 wzd321 阅读(585) 评论(0) 推荐(0)

摘要: def plot_learning_curve(estimator,X,y,cv=5,train_sizes=[0.1,0.3,0.5,0.7,0.8,0.9]): """ 描述:对于不同数量的训练样本的估计器的验证和训练评分 param estimator:object| param X:shape=[n_samples,n_feature] param... 阅读全文

posted @ 2018-10-31 21:42 wzd321 阅读(478) 评论(0) 推荐(0)

摘要: import pandas as pd import re def getNum(x): """ 科学计数法和字符转浮点数 """ if re.findall(r'\d+\.\d+E\+',x): return "%.f" % float(x) elif x=="C": return 1 else: ... 阅读全文

posted @ 2018-10-31 20:58 wzd321 阅读(2340) 评论(0) 推荐(0)

摘要: 统计型特征: 组合型特征: 1. 拼接型:简单的组合特征:例如挖掘用户对某种类型的喜爱,对用户和类型做拼接;正负权重,代表喜欢或不喜欢某种类型. - user_id&&category: 10001&&女裙 10002&&男士牛仔 - user_id&&style: 10001&&蕾丝 10002& 阅读全文

posted @ 2018-10-31 20:09 wzd321 阅读(738) 评论(0) 推荐(0)

2018年10月29日

摘要: 转载:https://blog.csdn.net/mvpboss1004/article/details/79188190 pandas中的get_dummies得到的one-hot编码数据类型是uint8,进行数值计算时会溢出!!! 1 uint82 uint83 uint8dtype: obje 阅读全文

posted @ 2018-10-29 14:34 wzd321 阅读(2549) 评论(0) 推荐(0)

2018年10月28日

摘要: "gbdt":Gradient Boosting Decision Tree "dart":Dropouts meet Multiple Additive Regression Trees "goss":Gradient-based One-Side Sampling "rf": Random Fo 阅读全文

posted @ 2018-10-28 22:35 wzd321 阅读(12598) 评论(1) 推荐(0)

2018年10月25日

摘要: 转载:https://zhuanlan.zhihu.com/p/38440477 转载:https://blog.csdn.net/starzhou/article/details/78930490 转载:https://www.cnblogs.com/wzdLY/p/9649101.html 1. 阅读全文

posted @ 2018-10-25 21:58 wzd321 阅读(41715) 评论(3) 推荐(1)

2018年10月24日

摘要: 原理介绍:https://zhuanlan.zhihu.com/p/29779000 阅读全文

posted @ 2018-10-24 22:06 wzd321 阅读(232) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2018-10-24 10:04 wzd321 阅读(221) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页