This project is a Streamlit web app that predicts whether a car’s mileage (MPG) is above or below average using the Auto MPG dataset and logistic regression.
- Data preprocessing and model training
- Model performance metrics and confusion matrix visualization
- Interactive user input for car features
- Instant prediction of mileage impact
- Install requirements:
pip install streamlit scikit-learn pandas numpy seaborn matplotlib - Start the app:
streamlit run MPG_DATA_1.py
- Enter car features in the sidebar and click Predict to see if the car has positive or negative mileage impact.
MPG_DATA_1.py: Main Streamlit appauto-mpg.csv: Dataset (required in the same directory)