GithubHelp home page GithubHelp logo

luluw8071 / laptop-price-prediction Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.54 MB

A collection of machine learning models for predicting laptop prices

License: MIT License

Jupyter Notebook 99.67% Python 0.33%
laptop-price-prediction machine-learning python adaboost-regressor decision-tree-regression ensemble-learning extra-tree-regressor gradient-boosting-regressor knn-regression lasso-regression

laptop-price-prediction's Introduction

Laptop-Price-Prediction

A collection of machine learning models for predicting laptop prices

Laptop-Price-Prediction

Dependencies To install the required Python packages you can use the following command:
pip install -r requirements.txt
Datasets Reference The dataset is about laptops configuration with prices containing 1302 laptops data with 12 columns Company name,type namee, laptop size in (inches), Screen resolution, CPU, RAM, Memory, GP, Operating system, Price in INR. The dataset was collected from Amazon in 2017-18.
Regressor Model Choices
  • Multiple Linear Regression
  • Ridge Regression
  • Lasso Regression
  • k-Nearest Neighbors (k-NN)
  • Decision Tree
  • Support Vector Machine (SVM)
  • Random Forest
  • ExtraTrees
  • Adaptive Boost (AdaBoost)
  • Gradient
  • Extreme Gradient Boost (XGBoost)
  • Voting
  • Stacking
  • Random Forest Regressor Model - Personal Customization
  • Voting Regressor Model (Rf+Gradient) - Personal Customization
Selected Regression Model
  • Random Forest Regressor Model - Personal Customization
R2 Score: 88.78 %
Mean Absolute Error: 15.94 %
  • Voting Regressor Model (Rf+Gradient) - Personal Customization
R2 Score: 0.89 ( 89.27 %)
Mean Absolute Error: 0.15 ( 15.37 %)
Price Currency Conversion [Optional] This line of code indicates currency conversion of laptop prices from INR to USD (1 Indian Rupee = 0.012 US Dollar). You can customize the currency exchange rate that suits your need.

st.title(f"\nPrice: {round(predicted_price * 0.012, 2)} USD")
Run app.py To run the app.py, load the dependecies requirements and use the following command:

streamlit run app.py

✨ Enjoy the demo


Feel free to send issues if you face any problem.
✨ Don't forget to star the repo :)

laptop-price-prediction's People

Contributors

luluw8071 avatar

Stargazers

 avatar  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.