Giter VIP home page Giter VIP logo

betclick's Introduction

Betclick Churn Analysis

This repo contains an Assignment for betclick

Install:

  • clone the repo
  • `pip install -r "requirements.txt"``
  • cd ./src

Run with docker:

change env variable PASSWORD in docker-compose sudo docker-compose up --build

Fit

  • fit the model on data using: python main.py

The script will: - download the data, and optionnally ask a password for unzipping - label the data and drop leaky rows - preprocess and write serializables necessary for inference on disk

Predict

python main.py --predict

  • predict whether each customer in a subsample of the dataset is a potential churner.
  • write a file on disk in the preds folder the first column rerpresents customer_key the second column is the target
customer_key is_churner
10390929 True
10390926 True
10390926 False
10390926 True
10390926 False
10390926 False

Predict on private dataset

python main.py --predict --private_file "my_data_file.csv"

The data should have the same format as the original one, it might be necessary to handle mix typed columns.

betclick's People

Contributors

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