A machine learning model to predict salary range deployed in render with a public API.
- See model card to read about the model and the ethical considerations.
- See usage to use the features of the repository
- Repository
- WandB for viewing experiments and exploratory data analysis code artifacts
App is deployed on Render and you may try it out by using Postman or any other tool of your convenience. A sample usage is in live_post_request.py
App is available at: https://census-classifier-api.onrender.com/
WandB account, as we will log model metrics using WandB
pip install -r requirements.txt
# Optional for downloading EDA notebook
wandb artifact get abdulazizab/census-classification/job-https___github.com_abdulazizab2_CensusClassifier.git_explore_census_dataset.ipynb:latest
dvc pull # fetches data and model
PYTHONPATH=. python CensusClassifier/train_model.py
After training a new model, you can version it by:
dvc add model/{YOUR_MODEL}
dvc add model/{YOUR_ENCODER}
And push it to your remote !
- Launch API server
uvicorn main:app
- View docs at
{IP}:{PORT}/docs
on how to make inference using/predict
PYTHONPATH=. pytest