This Streamlit application predicts whether a person's income is <=50K or >50K based on various demographic factors.
The app uses a RandomForestClassifier model trained on demographic data to predict income levels. Users can input their details through a user-friendly web interface, and the model will output a prediction for their income bracket.
- Predict income level based on personal information
- Easy-to-use web interface
- Input validation and user feedback
- Enter your age.
- Select your work class from the dropdown.
- Enter your final weight (continuous).
- Select your education level from the dropdown.
- Enter your education number (continuous).
- Select your marital status from the dropdown.
- Select your occupation from the dropdown.
- Select your relationship status from the dropdown.
- Select your race from the dropdown.
- Select your gender (Male/Female).
- Enter your capital gain (continuous).
- Enter your capital loss (continuous).
- Enter your hours worked per week (continuous).
- Select your country from the dropdown.
After filling out all the information, click the "Submit" button to see the prediction.
To run this application on your local machine, you will need Python and Streamlit installed.
pip install streamlit
pip install pickle
pip install pandas
After installing the necessary packages, you can start the app by running:
python -m streamlit run app.py
Explore the Adult Income Prediction App's interface. Below is a snapshot of App in action:
Contributions are welcome. Please fork the project and submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.