wrangler.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:tcsl 作者: machinelearningnanodegree 项目源码 文件源码
def recurvise_index(self, clf,):
        # rank all features, i.e continue the elimination until the last one
        rfe = RFE(clf, n_features_to_select=1)
        rfe.fit(self.features, self.labels)
        # map recursive feature score to the feature names
        rfedict = {k: v for k, v in
                   zip(self.features.columns.tolist(),
                       map(lambda x: round(x, 4),
                           rfe.ranking_
                           )
                       )
                   }
        return rfedict
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号