Code Monkey home page Code Monkey logo

pankajvispute / i-phone-purchase-project--prediction-with-knn-classification Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 615 KB

Prediction of customer will purchase iPhone or not using KNN classifier model and multiple supervised ML model.

Home Page: http://localhost:8889/notebooks/I_Phone_Purchase_Project_using_KNN_Model.ipynb#

Jupyter Notebook 100.00%
feature-engineering joblib knn-classification matplotlib-pyplot numpy-library pandas-library preprocessing-data python3 scikitlearn-machine-learning seaborn standardscaler descision-tree logistic-regression multiple-linear-regression random-forest-classifier

i-phone-purchase-project--prediction-with-knn-classification's Introduction

Prediction-with-KNN-Classification

Implementation of KNN algorithm in Python 3

Description

  • K-Nearest-Neighbors algorithm is used for classification and regression problems.
  • In this project, it is used for classification.
  • puchased Iphone dataset used for project.

Data set format

  • CSV (Comma Separated Values) format.
  • Attributes can be integer or real values.
  • Responses can be integer, real or categorical.

Overview

The primary goal is predict wheather customer will purchase Iphone or not from their store based on gender, age and salary.

liabrary

  • pandas, numpy, matplotlib,seaborn,sklearn,joblib used in project

Methodology

  1. Machine learning life cycle:

    • followed indistry standard practice of machine learning life cycle steps.
  2. Preprocessing and EDA:

    • implement necessary transformation, preprocessing of dataset.
    • conduct exploratory data analysis on dataset.
  3. Visualization:

    • visualised data using visualisation library like matplotlib, seaborn.
  4. Algorithm:

    • scikit library use for KNN algorithm.
  5. model validation:

    • model validate with accuracy score of diff K, confusion metrix.
  6. save model:

    • joblib library used to dump model.
    • model is saved in .ipynb formate as i_phone_purchase_product_using_KNN_model.

EDA:

  • Total female are 51% and male are 49%.
  • Female average salary is more than male average salary.
  • Total iphone purchased - 143 no's ( female purchased - 77 no's and male purchased - 66 no's)
  • Maximum iphone purchased between age group of 46 to 50 years.( female - 47 to 48 yrs, male - 46 to 50 yrs)
  • No correlation between salary with age and salary with number of iphone purchased.

KNN model:

  • model validated with k values 19, 21 and 15 which was calculated by standard method and error method.
  • accurancy score of k=15 is 0.875, so it is greater than other model.So it is considered and saved.

i-phone-purchase-project--prediction-with-knn-classification's People

Contributors

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