GithubHelp home page GithubHelp logo

subramanyaks / social-networks-ads Goto Github PK

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

Using various Machine Learning models to predict if a person is going to buy a new product or not.

Jupyter Notebook 100.00%
machine-learning logistic-regression

social-networks-ads's Introduction

Social-Networks-Ads

Using various Machine Learning models to determine whether a person is going to buy a new product or not.

Since it is a categorial dataset.So we use various classification supervised machine learning algorithm.

Decision Tree.

Decision Tree is a Supervised learning technique that can be used for both classification and Regression problems, but mostly it is preferred for solving Classification problems. It is a tree-structured classifier, where internal nodes represent the features of a dataset, branches represent the decision rules and each leaf node represents the outcome.

K Nearest Neighbors.

The k-nearest neighbors (KNN) algorithm is a simple, easy-to-implement supervised machine learning algorithm that can be used to solve both classification and regression problems. It is also called a lazy learner algorithm because it does not learn from the training set immediately instead it stores the dataset and at the time of classification, it performs an action on the dataset.KNN algorithm at the training phase just stores the dataset and when it gets new data, then it classifies that data into a category that is much similar to the new data.

Logistic Regression.

Logistic regression is one of the most popular Machine Learning algorithms, which comes under the Supervised Learning technique. It is used for predicting the categorical dependent variable using a given set of independent variables.Logistic regression predicts the output of a categorical dependent variable. Therefore the outcome must be a categorical or discrete value. It can be either Yes or No, 0 or 1, true or False, etc. but instead of giving the exact value as 0 and 1, it gives the probabilistic values which lie between 0 and 1.

Naive Bayes classifier.

Naïve Bayes algorithm is a supervised learning algorithm, which is based on Bayes theorem and used for solving classification problems.Naïve Bayes Classifier is one of the simple and most effective Classification algorithms which helps in building the fast machine learning models that can make quick predictions.It basically use probability for prediction.

Support vector Machine.

Support Vector Machine or SVM is one of the most popular Supervised Learning algorithms, which is used for Classification as well as Regression problems. However, primarily, it is used for Classification problems in Machine Learning.The goal of the SVM algorithm is to create the best line or decision boundary that can segregate n-dimensional space into classes so that we can easily put the new data point in the correct category in the future. This best decision boundary is called a hyperplane.

Random Forest.

Random Forest is a popular machine learning algorithm that belongs to the supervised learning technique. It can be used for both Classification and Regression problems in ML. Random Forest is a classifier that contains a number of decision trees on various subsets of the given dataset and takes the average to improve the predictive accuracy of that dataset. Instead of relying on one decision tree, the random forest takes the prediction from each tree and based on the majority votes of predictions, and it predicts the final output.

Reference

www.javatpoint.com/

www.wikipedia.com/

zTraining and Testing Accuracy of various machine learning algorithm to social network dataset.

For Decision tree

Training Accuracy - 100.0% Testing Accuracy - 91.0%

For Logistic Regression

Training Accuracy - 82.33.0% Testing Accuracy - 89.0%

For Naive Bayes

Training Accuracy - 88.33% Testing Accuracy - 90.0%

For K- Nearest Neighbour

Training Accuracy - 91.0% Testing Accuracy - 93.0%

For Support Vector Machine

Training Accuracy - 82.33% Testing Accuracy - 90.0%

For Random Forest

Training Accuracy - 99.0% Testing Accuracy - 92.0%

For Kernel Support Vector Machine

Training Accuracy - 91.33% Testing Accuracy - 93.0%

social-networks-ads's People

Contributors

subramanyaks avatar

Stargazers

 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.