This project is a car price prediction tool built with Python and Streamlit. The model leverages machine learning techniques to predict the price of a car based on various input features like model year, mileage, engine type, and more.
This project is a car price prediction tool built with Python and Streamlit. The model leverages machine learning techniques to predict the price of a car based on various input features like model year, mileage, engine type, and more.
- Predicts car prices based on user-provided details
- Interactive UI built with Streamlit for easy usability
- Data preprocessing, transformation, and model loading handled in the backend
project-folder/
│
├── main.py # Main Streamlit application
├── car_price_model.joblib # Trained machine learning model
├── requirements.txt # Python dependencies
└── README.md # Project documentation
-
Clone the repository:
git clone https://github.com/yourusername/car-price-prediction.git cd car-price-prediction -
Install the required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run main.py
-
Open the app in your browser by going to
http://localhost:8501.
- Enter details like car model, year, mileage, transmission type, and other relevant information.
- Click the "Predict Price" button to get an estimated price.
The model was trained using various features, including:
- Model year
- Mileage
- Transmission type
- Fuel type
- Engine capacity and more...
The model was saved using joblib and can be reloaded for predictions.
This project uses the following libraries:
- Streamlit - For building the interactive web application
- Scikit-learn - For machine learning model training and pipeline management
- XGBoost - For the prediction model
- Pandas - For data manipulation and preprocessing
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
Feel free to reach out if you have any questions or suggestions for improvement.
### Notes:
- Replace **username** in `git clone' with your GitHub username.
- If you don't have the `requirements.txt' file, you can create it by running the following command:
```bash
pip freeze > requirements.txt
