Giter VIP home page Giter VIP logo

cs311-ai-xgboost's Introduction

Predicting Adult Census Income Using XGBoost Gradient Boosted Trees System

Haibin Lai 赖海斌 12211612

img.png

In this project, We try to predict Adult Census Income Dataset by using XGBoost Gradient Boosted Trees System.

This directory contains 3 main programs:

  • AutogluonProcess.ipynb & AutogluonProcess.py: These files are used to run Autogluon and help us decide which model to use.

  • XGBoost.ipynb: This file is used to run XGBoost.

  • Visualization.ipynb: This file is for data visualization.

Running Preparation

Needed Python Version:

! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

python <=3.11 (package autogluon can't support python 3.12!)

! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

My computer runs well in 3.11

Needed Package:

The following version work well in Anaconda:

Library Version Notes
autogluon 1.1.0 自动化机器学习包
pandas 2.2.1 处理数据
warnings in Python -
matplotlib 3.8.4 画图
seaborn 0.12.0 数据可视化
sklearn 1.4.0 决策树框架 (1.5.0 tested OK)
xgboost 2.0.3 提供 XGBoost 分类器
jupyter 1.0.0

Using xgboost:

XGBoost: eXtreme Gradient Boosting library. Contributors: https://github.com/dmlc/xgboost/blob/master/CONTRIBUTORS.md

Installing

Pip 21.3+ is required

pip install xgboost

Installing autogluon

(tips: install time is a bit long! And we don't fully need it!)

这个包有很多版本限制,它可能会改掉一些下载的东西(比如它会卸载scikit-learn 1.4.2,然后重新安装个版本)要依赖很多包(比如torch),文件非常大,并且需要管理员权限来安装,我们只在Autogluon文件中进行了跑, 并且最终提交没有依赖那两个文件,而是XGBoost文件,如果跑不起来也没问题。 另外很神奇的是,这个包的预测跟它的版本有关

pip install autogluon

Useful website

This project's Github website: https://github.com/Laihb1106205841/CS311-AI-Peoject3-XGBoost.git

XGBoost Introduction: https://xgboost.readthedocs.io/en/stable/tutorials/model.html

XGBoost Github website: https://github.com/dmlc/xgboost?tab=security-ov-file

cs311-ai-xgboost's People

Contributors

haibinlai avatar

Stargazers

 avatar

Watchers

 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.