Skip to content

khaled-benahmed/Regression---Diamond-Price-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Regression Diamond-Price-Prediction

Diamonds

Diamond is a solid form of the element carbon with its atoms arranged in a crystal structure called diamond cubic. At room temperature and pressure, another solid form of carbon known as graphite is the chemically stable form, but diamond almost never converts to it. Diamond has the highest hardness and thermal conductivity of any natural material, properties that are utilized in major industrial applications such as cutting and polishing tools. They are also the reason that diamond anvil cells can subject materials to pressures found deep in the Earth .

Diamonds Dataset :

This classic dataset contains the prices and other attributes of almost 54,000 diamonds. It's a great dataset for machine learnung and work with data analysis and visualization.

Dataset Columns :

  • price : price in US dollars ( $326 - $18,823 )

  • carat : weight of the diamond ( 0.2 - 5.01 )

  • cut : quality of the cut ( Fair , Good , Very Good , Premium , Ideal )

  • color : diamond colour, from J ( worst ) to D ( best )

  • clarity : a measurement of how clear the diamond is ( I1 (worst) ,SI2 ,SI1 ,VS2 ,VS1 ,VVS2 ,VVS1 ,IF (best))

  • x : length in mm ( 0 - 10.74 )

  • y : width in mm ( 0 - 58.9 )

  • z : depth in mm ( 0 - 31.8 )

  • depth : total depth percentage = z / mean( x, y ) = 2 * z / ( x + y ) --> ( 43 - 79 )

  • table : width of top of diamond relative to widest point ( 43 - 95 )

Machine Learning

** Regression**

Regression on this dataset :

Algorithms :

  • Linear Regression
  • Decision Tree Regressor
  • Random Forest Regressor
  • XGB Regressor
  • KNeighborsRegressor