Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
General:  xgboost fastapi Task:  automl Data Domain:  tabular
7c0d8fa2aa
first and final
2 years ago
1bba9dad40
notebook images corrected3
2 years ago
7c0d8fa2aa
first and final
2 years ago
7c0d8fa2aa
first and final
2 years ago
be2ea02402
autoxgb tutorial added 2
2 years ago
7c0d8fa2aa
first and final
2 years ago
9142e25f6d
Update 'README.md'
2 years ago
7c0d8fa2aa
first and final
2 years ago
7c0d8fa2aa
first and final
2 years ago
7c0d8fa2aa
first and final
2 years ago
7c0d8fa2aa
first and final
2 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In

Introduction to AutoXGB

The guide for AutoXGB which includes training and running web server.

cover

AutoXGB is simple but effective AutoML tool to train model tabular dataset directly. The AutoXGB use XGBoost for training the model, Optuna for hyperparameters optimization and FastAPI to run web app.

  • auto train xgboost directly from CSV files
  • auto tune xgboost using Optuna
  • auto serve best xgboot model using FastAPI
pip install autoxgb

Github deepnote

Dataset

The dataset is available at Kaggle: Adult Census Income under CC0: Public Domain. It was extracted from the 1994 Census bureau database by Ronny Kohavi and Barry Becker (Data Mining and Visualization, Silicon Graphics).The prediction task is to determine whether a person makes over $50K a year.

Training with CLI

Train the model in terminal using the autoxgb train command. The parameters are same as above.

autoxgb train \
 --train_filename binary_classification.csv \
 --output output \

Web API

By using autoxgb serve on CLI you can run localy FastAPI server.

Picture title

Input

We are going to use FastAPI GUI to run predictions on model by adding /docs at the end of the link. For example 172.3.167.43:39118/docs

  • workclass: "Private"
  • education: "HS-grad"
  • marital.status: "Widowed"
  • occupation: "Transport-moving"
  • relationship: "Unmarried"
  • race: "White"
  • sex: "Male"
  • native.country: "United-States"
  • age: 20
  • fnlwgt: 313986
  • education.num: 9
  • capital.gain: 0
  • capital.loss: 0
  • hours.per.week: 40

Picture title

Outcome

The result is <50k with confidence of 97.6% and >50k with confidence of 2.3%.

Picture title

Tip!

Press p or to see the previous file or, n or to see the next file

About

Creating guide for AutoXGB which includes training and running web server.

https://deepnote.com/@abid/AutoXGB-jTrkEca8TK2KFHMvjj8Ttw
Collaborators 1

Comments

Loading...