xgboost 保存模型和特征重要度
来源:互联网 发布:软件测试毕业总结 编辑:程序博客网 时间:2024/06/04 17:49
1. 保存模型:
(1)保存:
bst.save_model('0001.model')(2)加载模型:
bst_new = xgb.Booster({'nthread':4}) #init modelbst_new.load_model("0001.model") # load data
source from:
http://blog.csdn.net/zc02051126/article/details/46771793
2.xgb 打印特征重要度:
使用f1 score来打分
import pandas as pdimport matplotlib.pylab as pltfeat_imp = pd.Series(clf.booster().get_fscore()).sort_values(ascending=False)feat_imp.plot(kind='bar', title='Feature Importances')plt.ylabel('Feature Importance Score')plt.show()来自,余音大神的blog:
http://blog.csdn.net/q383700092/article/details/53763328
阅读全文
0 0
- xgboost 保存模型和特征重要度
- 【数据挖掘 xgboost】特征的重要程度分析
- XGBoost模型
- GBDT和Xgboost模型对比总结
- Tensorflow保存模型,恢复模型,使用训练好的模型进行预测和提取中间输出(特征)
- Tensorflow保存模型,恢复模型,使用训练好的模型进行预测和提取中间输出(特征)【转】
- 特征选择 GBDT 特征重要度
- xgboost特征选择
- xgboost特征工程
- xgboost 特征工程
- Xgboost筛选特征重要性
- xgboost特征选择
- 转:xgboost特征选择
- XGBoost 中特征重要性和特征选择原理解析与实战
- R-xgboost模型
- XGBoost模型调优
- xgboost的模型推导
- 使用xgboost进行特征选择
- GPU instancing unity官方文档翻译
- 袁隆平的亩产千斤?
- shell编程其实真的很简单(五)
- [NOIP模拟] 玩积木
- Linux操作系统 习题二
- xgboost 保存模型和特征重要度
- spring各版本下载
- 1013. 数素数 (20)
- 2017年10月7日提高组T1 染色
- 给定n个字符串,请对n个字符串按照字典序排列。
- softmax回归
- 2017自己前端面试题总结
- Java中对数组的两种操作方法Arrays、foreach()
- unity优化《二》--Texture图片空间和内存占用分析