Giter Site home page Giter Site logo

credit_card_marketing's Introduction

Project: Credit Card Marketing

The objective of this project is to find the best prediction model on a classification data. The target is the Offer_accepted column. Here are 2 models, a linnera Regression model and a KN - neighbors model. The dataset used for this project can be found on GitHub-Ironhack

Objectives

  • Create a Logistic Regression model to predict the customers who will accept the offer.
  • Create a KN-neighbors model to predict the customers who will accept the offer.
  • Visualize the dataframes to understand the most important data.
  • Select the model with the highest accuracy score.

Project Steps:

Data Cleaning

  • Drop the customer number column.
  • Change the data types of the columns wich I consider.
  • Check for null values and drop them.
  • Plot the numerical column and remove outliers.
  • Transform the numerical data in order to make it like a standart deviation.
  • Plot the categorical columns and bucket the ones wich have a few values.

Data Analysis

  • Selecting the columns that looks to be the most correlated to the target.
  • Up sampling the data in order to balance it

Processing Data

  • Scaling the numerical data.
  • Use OneHotEncoder for the categorical data, excluding the target.

Logistic Regresion Model

  • Create the logistic regression model to predict the Offer accepted.
  • Plot a confusion matrix to visualize the prediction.

KN-neighbors

-Find the best "k value" for the model. -Create a KN-neighbors model to predict the Offer accepted. -Plot a confusion matrix to visualize the prediction.

Evaluate Accuracy

  • score and ROC AUC;

Conclussion:

-The best model for this case is the Logistic Regression model because it had a better accuracy.


link to tableu https://public.tableau.com/app/profile/h.ctor.mondragon.reyes/viz/credit_card_marketing/Dashboard1?publish=yes


The files required for the project are in the data_files file:

  • original_dataframe.csv
  • clean_data.csv
  • up_sampling_data.csv
  • scaled_numerical_data.csv
  • encoded_categorical_data.csv
  • concatinated_final_data.csv

credit_card_marketing's People

Contributors

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