Giter Site home page Giter Site logo

dm's Introduction

基于Datwhale数据挖掘第7期组队学习

这份数据集是金融数据(非原始数据,已经处理过了),我们要做的是预测贷款用户是否会逾期。表格中 "status" 是结果标签:0表示未逾期,1表示逾期。

任务一:对数据进行探索和分析。包括但不限于数据类型的分析、无关特征删除、数据类型转换、缺失值处理。

在做任务一时我用了互信息法删除了一些特征总共剩余52个特征,用随机森林auc达到84.22%

任务二:特征工程:包括但不限于IV值和随机森林等进行特征选择。

1、分箱计算IV值,IV值用来衡量自变量预测能力,IV值越大,说明自变量的预测能力越强,对因变量的预测贡献越大,变量越重要。

2、随机森林进行特征选择,主要用到随机森林的属性feature_imoportances,能够查看各个特征对模型的重要性。

计算IV值,选择介于0.02~0.5之间的IV值,筛选出36个特征,用随机森林取出前20个feature_imoportances重要的变量,最终auc达到81.07%。

任务三:模型构建。用逻辑回归、svm和决策树;随机森林和XGBoost进行模型构建,评分方式任意,如准确率等。(不需要考虑模型调参)

因样本是不平衡样本,此处主要考虑auc的值。XGBoost的auc0.8332,随机森林的auc0.8248,SVC的auc0.7641,决策树的auc0.7570,逻辑回归的auc0.6843.

dm's People

Contributors

guiabbey avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.