Giter Club home page Giter Club logo

binary-classification-modeling-using-alteryx's Introduction

BINARY CLASSIFICATION MODELING

Problem Statement: - Whether the hotel customer will redeem the yearly subscription or not ? I have used Alteryx to develop Logistic Regression, Step wise Logistic Regression and Decision Tree Model to predict binary outcomes by analyzing the outcome’s relationship with one or more predictor variables. Before starting applying the algorithms on the given hotel loyalty data set, I have created the estimation and validation sample.

image

1. Building Logistic Regression Model

image

image

The above process is bit of a manual process which requires selecting and deselecting variables of interest. I will use Stepwise Logistic Regression Model to automate the above process.

2. Logistic Regression - Stepwise

For building Stepwise Logistic Regression Model I have selected all the possible variables. The Stepwise Regression tool in Alteryx automatically figures out all the possible variables it can calculate first and it takes this list of possible variables from the Logistic Regression Tool as an output. After running the stepwise logistic regression model, we will be able to reduce much of the unnecessary variables.

image

3. Decision Tree Model Using Alteryx

image

image

image

4. Comparing Logistic Regression Model with Decision Tree Model

On Comparing the Logistic Regression Model against Decision Tree Model, the accuracy of Logistic Regression is better as compared to Decision Tree Model.

image

image

image

Result shows that the Logistic Regression Step Wise Model seems to perform better than the Decision Tree model.

5. Scoring the Model

The model in this case Stepwise Logistic Regression is scored against a new dataset to make predictions. This dataset have all the predictor variable values, which are passed through the model to predict the unknown target variable value. The prediction will be a number between 0 and 1, representing the likelihood of positive outcome.

image

image

6. Visualization

image

binary-classification-modeling-using-alteryx's People

Contributors

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