This repository contains an open-source application for predicting the price of diamonds using Machine Learning (ML). The project is designed for both practical applications and as a learning resource for data science and machine learning enthusiasts.
- Accurate Predictions: Get price estimates based on diamond characteristics like carat, cut, color, and clarity.
- User-Friendly Interface: Simple and intuitive web application for inputting attributes and viewing results.
- Open-Source: Fully customizable and available for contributions.
git clone https://github.com/subhash-kr0/diamond-price-prediction.git
cd diamond-price-predictionEnsure you have Python installed on your system. Then, install the required Python libraries:
pip install -r requirements.txtStart the Flask server by running:
python application.pyThe application will be available at http://127.0.0.1:5000/or localhost:5000 in your browser.
-
Input Features:
- Users provide details like
carat,cut,color, andclaritythrough a web form.
- Users provide details like
-
Machine Learning Model:
- The input is processed using a trained regression model to predict the price.
-
Results Display:
- The estimated price and input details are displayed dynamically.
├── setup.py
├── notebooks
├── application.py # Flask application
├── static/ # CSS, JavaScript, and images
├── templates/ # HTML templates
├── src/ # Trained machine learning model
├── requirements.txt # Python dependencies
└── README.md # Project documentation
The ML model was trained on a dataset containing detailed information about diamonds. Key techniques include:
- Feature Engineering: Processed features like carat, cut, and color.
- Model Training: Regression model trained using Scikit-learn.
- Evaluation: Achieved high accuracy on the test dataset.
Contributions are welcome! Here's how you can contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
Special thanks to the open-source community for making tools like Python, Flask, and Scikit-learn available, and to everyone who contributes to this project!

