首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
importances专题
特征选择错误:The classifier does not expose coef_ or feature_importances_ attributes
在利用RFE进行特征筛选的时候出现问题,源代码如下: from sklearn.svm import SVRmodel_SVR = SVR(C=1.0, cache_size=200, coef0=0.0, degree=3, epsilon=0.1, gamma='auto',kernel='rbf', max_iter=-1, shrinking=True, tol=0.001, verb
阅读更多...
python实现RF.feature_importances的条形图
#coding:utf-8import matplotlib as mplimport matplotlib.pyplot as pltimport pandas as pd#-*- 原始数据 -*-Feature_importances = [0.09874236361414918, 0.05457733080394871, 0.010137636755458375, 0.0021688
阅读更多...