GithubHelp home page GithubHelp logo

deepankarvarma / mobile-phone-price-prediction-using-regression Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 20 KB

This repository contains code for predicting the price of mobile phones using regression models. It includes the implementation of various regression techniques such as Random Forest Regression, Decision Tree Regressor, Linear Regression, and Lasso Regression.

Home Page: https://deepankarvarma-mobile-phone-price-prediction-using-r-app-xck2zi.streamlit.app/

Python 100.00%
machine-learning random-forest regression data-analysis predictive-models data-science decision-tree-classifier exploratory-data-analysis lasso-regression linear-regression

mobile-phone-price-prediction-using-regression's Introduction

Mobile Price Prediction Using Regression

This repository contains code for predicting the price of mobile phones using regression models. The project involves the application of various regression techniques, such as Random Forest Regression, Decision Tree Regressor, Linear Regression, and Lasso Regression, to estimate the price of mobile phones based on the given parameters. It also includes exploratory data analysis (EDA) and outlier analysis methods to gain insights into the dataset.

Models and Accuracy

The implemented regression models have been evaluated using the dataset to estimate the price of mobile phones. The accuracy scores achieved by the models are as follows:

  • Random Forest Regression: 96.94%
  • Decision Tree Regressor: 96.79%
  • Linear Regression: 96.14%
  • Lasso Regression: 96.13%

Please note that these accuracy scores are specific to the given dataset and may vary depending on the data and problem statement.

Streamlit Application

A Streamlit application has been developed to provide a user-friendly interface for interacting with the mobile price prediction model. The application allows users to input relevant parameters of a mobile phone and receive a predicted price based on the trained regression models. The application can be accessed through the following link: Mobile Price Prediction Application

Getting Started

To run the code in this repository locally, you can follow these steps:

  1. Clone the repository:
git clone https://github.com/your-username/your-repository.git
  1. Ensure that you have the necessary dependencies installed. The code requires the pandas library and scikit-learn for implementing the regression models. Install the dependencies using the following command:
pip install pandas scikit-learn
  1. Import the necessary libraries and load the dataset:
import pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import train_test_split

# Load the dataset
data = pd.read_csv("mobile_data.csv")
  1. Split the dataset into training and testing sets:
X = data.drop("price", axis=1)  # Input features
y = data["price"]  # Target variable

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
  1. Implement and train the regression model, for example, Random Forest Regression:
model = RandomForestRegressor()
model.fit(X_train, y_train)
  1. Predict mobile phone prices using the trained model:
y_pred = model.predict(X_test)

Feel free to explore the code and modify it according to your requirements.

Contributing

Contributions to this repository are highly welcome. If you have any ideas, suggestions, or improvements, please feel free to fork the repository and submit a pull request. Let's collaborate to enhance the mobile price prediction model!

License

This project is licensed under the MIT License. You are free to use and modify the code for your own purposes.

mobile-phone-price-prediction-using-regression's People

Contributors

deepankarvarma avatar

Watchers

 avatar  avatar

Forkers

georgepr0xy

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.