Git Product home page Git Product logo

modellingdataexploration-targetvariablerelationship's Introduction

Target-Variable Bivariate Relationship

This repository is used for visual exploration of target independent variable relationship. For each variable, below visualisations are plotted:

  • The histogram of independent variable
  • Log odds of target vs independent variable

Independent variables are processed as below:

  • Numerical Variables: Create bins. Default 10 bins. For customer number of bins, use parameter numeric_bins
  • Categorical Variables: Group low occuring values. Each value occuring <5% is grouped to others. For customer threshold, use parameter categorical_threshold

Usage

plot_exploratory_charts.py [-h] [--ifile IFILE] [--d D] [--target TARGET] [--invars INVARS] [--numeric_bins NUMERIC_BINS] [--categorical_threshold CATEGORICAL_THRESHOLD] [--output_csv OUTPUT_CSV]

Arguments

--ifile Input file --d Delimiter. Default: Comma --target Dependent Variable. Default: target --invars File with independent variables --numeric_bins Bins for numerical variables. Defualt: 10 --categorical_threshold Threshold below which categorical values grouped to others. Defualt: 0.05 --output_csv Path for output summary csv. If not given, no csv output saved

Example

python plot_exploratory_charts.py --ifile train.csv --invars vars.txt --target my_target

python plot_exploratory_charts.py --ifile train.csv --invars vars.txt --target my_target -d | --numeric_bins 20 --categorical_threshold 0.01 --output_csv bivariate_summary.csv

Sample Plot

Sample

modellingdataexploration-targetvariablerelationship's People

Contributors

arpitg91 avatar dragonwarrior15 avatar

Watchers

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