Diamond Project
This project is an end-to-end implementation of a ML model used to predict the prize of a diamond based on its various features.
Description
Diamond is highly valued in our society. It is seen as a sign of nobility. However, we don't know more about different features of diamond. We only know about carat, but not in depth. Hence let's discuss about the different features of diamond used in our project:
- Carat : 1 carat is equal to 200mg. Further, 1 carat is divided into 100 division.
- Cut : Cut refers the way the diamond is shaped. It has a large impact of the brilliance(shining).
- Clarity : It refers to the amount of blemishes, different types of clarity :
- Flawless (FL) No inclusions and no blemishes visible under 10x magnification
- Internally Flawless (IF) No inclusions visible under 10x magnification
- Very, Very Slightly Included (VVS1 and VVS2) Inclusions so slight they are difficult for a skilled grader to see under 10x magnification
- Very Slightly Included (VS1 and VS2) Inclusions are observed with effort under 10x magnification, but can be characterized as minor
- Slightly Included (SI1 and SI2) Inclusions are noticeable under 10x magnification
- Included (I1, I2, and I3) Inclusions are obvious under 10x magnification which may affect transparency and brilliance
In our dataset, we have only I1,IF,VS1,VS2,VVS1,VVS2,SI1 and SI2.
- Colour : Colour actually means lack of colour in diamond. The used dataset has colours D-J (best to worst).
- Dimensions : The lenght, width and height of diamond(x,y and z respectively).
- Depth and table : These two are related to dimension. Depth is the ratio of z with mean of x and y.
Depth = z/mean(x,y). Table is width of diamond relative to its widest point.
Click here to download the dataset and see it first.
Model Performance
The model has an accuracy of 97% on the test dataset used in the project.
Dependencies
The python version used in this project is 3.8.x.
Python Libraries used in project:
- Pandas
- Numpy
- Scikit-Learn
- Pycountry
- Email-validator
The webpage is made using HTML, CSS and Flask framework. The Flask framework has the follwing packages:
- Flask-SQLAlchemy
- Flask-Inputs
- Flask-Login
- Flask-WTF
Executing program
After installing all the dependencies, execute the run.py file and the site will open at localhost:5000. The home page of the website will open.
Snippets from the website
Since this website was made for the hackathon "Aye Aye Hackers", hence it has a pirate theme.
- First page of the website
- Login Page
- Home Page
- Update Info page
- Result page
- Creators' Info
## Authors
Contributor names and contact info
Biplov Pokhrel GitHub : @pbplop29 Email : pbplop@gmail.com
Siddharth Sharma Github : @pao0318 Email : sharma.siddharthspacex21@gmail.com
Tanishq Dubey Github : @tanishq12442 Email : tanishqdubey12442@gmail.com
Ankit Oscar Xalxo GitHub : @ankitoscar Email : ankitoscar911@gmail.com
Version History
- 0.1
- Initial Release
Log in or sign up for Devpost to join the conversation.