Git Product home page Git Product logo

ml-project's Introduction

Laptop Price Predictor

Final project of Machine Learning course

Collecting data

All of the needed data scraped from torob.com

At scraping step, first we used selenium for getting 1176 laptop samples (picking up laptop link from torob website and write them in a .csv file). After that, we used Requests and BeautifulSoup librarys to openning every 1176 record link (loading every link from last .csv file to get laptops price and features, putting them on from-0-to-1176.csv file), because of these two library was faster than selenium in loading web pages.

Cleaning

At first we drop non related columns (or unnecessary columns) from last .csv file and then merge related columns together. Then, we make values clean by runing Regex on some columns, and some by hand in google sheet

The finnal cleaned data includes: CPU Detail CPU Manufacturer CPU Generation CPU Arc Core Cache RAM HDD SSD Graphic-creator Graphic RAM Blore screen Keyboard light Battery houre Battery Cells Battery Capacity Size per Inch and Touch screen with amount lable

Feature Engineering

the finnal data fream includes many NaN values, so we set them to zero, column's mode or outside value, depends on they belongs to whitch columns. we set them with sklearn Pipeline

At the second step we use OneHotEncoder and StandardScaler for categorical and numerical features.

Training models

Used models:

  • RandomForestRegressor
  • GradientBosstingRegressor
  • SVR (Regressor type of SVM algorithm)
  • XGBoost
  • Tow types of LinearRegressions: Ridge and Lasso
  • Fully connected

All of the models above, tuned with their specific hyper parameters and different cross-validations and K-folds by GridSearchCV

ml-project's People

Contributors

hannaparsa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.