Git Product home page Git Product logo

pipelinex_causallift's Introduction

PipelineX CausalLift

An example project using PipelineX, Kedro, and CausalLift for Uplift Modeling to find which customers should be targeted and which customers should not for a marketing campaign (treatment).

Pipeline visualized by Kedro-viz

1. Install dependencies

$ pip install pipelinex causallift xgboost kedro mlflow kedro-viz

Note: mlflow and kedro-viz are optional.

2. Clone this repository and run main.py

$ git clone https://github.com/Minyus/pipelinex_causallift.git
$ cd pipelinex_causallift
$ python main.py

Tested environment

  • Python 3.6.8

Simplified Kedro project template

This project was created from the GitHub template repository at https://github.com/Minyus/pipelinex_template

To use for a new project, fork the template repository and hit Use this template button next to Clone or download.

pipelinex_causallift's People

Contributors

minyus avatar

Stargazers

Andres Mariscal avatar  avatar Adi Lin avatar Jeff avatar Ramsey avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

peccer

pipelinex_causallift's Issues

ValueError: Input contains NaN, infinity or a value too large for dtype('float64')

Hi, first of all thank you for the great package, it is amazing.
I'm having some problems and would appreciate a lot if you could help.
While running this code I got an error

cl = CausalLift(X0, X1, enable_ipw=True, verbose=3)

[2021-01-14 15:07:57,554|causallift.nodes.estimate_propensity|INFO]

Confusion Matrix for Test:

[2021-01-14 15:07:57,559|kedro.pipeline.node|ERROR] Node estimate_propensity([args,df_00,propensity_model]) -> [df_01] failed with error:
Input contains NaN, infinity or a value too large for dtype('float64').
[2021-01-14 15:07:57,564|kedro.runner.sequential_runner|WARNING] There are 1 nodes that have not run.
You can resume the pipeline run by adding the following argument to your previous command:
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').

There are no such values in my train/test datasets, I think it is somehow related to the propensity score calculation. Can you please help how to resolve?

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.