Coder Social home page Coder Social logo

meuwebsite / facebook--predictcustumer-click Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 445 KB

Running a targetted marketing ads on facebook. The company wants to anaylze customer behaviour by predicting which customer clicks on the advertisement

License: MIT License

Jupyter Notebook 100.00%
googlecolab logistic-regression-algorithm python pandas sklearn numpy matplotlib-pyplot

facebook--predictcustumer-click's Introduction

Machine Learning - Logistic Regression

Facebook--PredictCustumer-Click

fb

Background

Running a targetted marketing ads on facebook. The company wants to anaylze customer behaviour by predicting which customer clicks on the advertisement. Customer data is as follows:

Inputs:

  • Name
  • e-mail
  • Country
  • Time on Facebook
  • Estimated Salary (derived from other parameters)

Goals

  • Split the data in Train and Test
  • Train and Test the model in the data set
  • Visualize
  • Predict Click on the ad

How to run

Open Google Colab https://colab.research.google.com/

  • File
  • Upload Notebook
  • Run the Cells

Proccess

Import the data set and visualize the data

  • With Scatter plot

fb

  • With Box plot

fb

  • With Histogram

fb

Transforming the data and Executing a training Test

fb

With Confusion Matrix, checking on the accuracy

fb

ploting the boundary using the trained classifier

  • Run the classifier to predict the outcome on all pixels with resolution of 0.01
  • Colouring the pixels with 0 or 1
  • If classified as 0 it will be magenta, and if it is classified as 1 it will be shown in blue

fb

Ploting all the actual training points

fb

Visualising the Training set results for Tran and Test

fb

facebook--predictcustumer-click's People

Contributors

meuwebsite avatar

Stargazers

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