All Projects → SauceCat → Pdpbox

SauceCat / Pdpbox

Licence: mit
python partial dependence plot toolbox

Projects that are alternatives of or similar to Pdpbox

Pose Hg Train
Training and experimentation code used for "Stacked Hourglass Networks for Human Pose Estimation"
Stars: ✭ 541 (-0.55%)
Mutual labels:  jupyter-notebook
Pynotes
Python exercises to practice skills
Stars: ✭ 543 (-0.18%)
Mutual labels:  jupyter-notebook
Ember
Stars: ✭ 545 (+0.18%)
Mutual labels:  jupyter-notebook
Cookbook 2nd Code
Code of the IPython Cookbook, Second Edition, by Cyrille Rossant, Packt Publishing 2018 [read-only repository]
Stars: ✭ 541 (-0.55%)
Mutual labels:  jupyter-notebook
Tensorrt
TensorFlow/TensorRT integration
Stars: ✭ 543 (-0.18%)
Mutual labels:  jupyter-notebook
Pierian Data Complete Python 3 Bootcamp
Stars: ✭ 544 (+0%)
Mutual labels:  jupyter-notebook
Attention Networks For Classification
Hierarchical Attention Networks for Document Classification in PyTorch
Stars: ✭ 540 (-0.74%)
Mutual labels:  jupyter-notebook
Handson Ml
A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in python using Scikit-Learn and TensorFlow.
Stars: ✭ 23,798 (+4274.63%)
Mutual labels:  jupyter-notebook
Chinese models for spacy
SpaCy 中文模型 | Models for SpaCy that support Chinese
Stars: ✭ 543 (-0.18%)
Mutual labels:  jupyter-notebook
Sentiment analysis fine grain
Multi-label Classification with BERT; Fine Grained Sentiment Analysis from AI challenger
Stars: ✭ 546 (+0.37%)
Mutual labels:  jupyter-notebook
Nanovna
Very Tiny Palmtop Vector Network Analyzer
Stars: ✭ 539 (-0.92%)
Mutual labels:  jupyter-notebook
Pytips
Useful Python tips!
Stars: ✭ 542 (-0.37%)
Mutual labels:  jupyter-notebook
Hate Speech And Offensive Language
Repository for the paper "Automated Hate Speech Detection and the Problem of Offensive Language", ICWSM 2017
Stars: ✭ 543 (-0.18%)
Mutual labels:  jupyter-notebook
Mongood
A MongoDB GUI with Fluent Design
Stars: ✭ 540 (-0.74%)
Mutual labels:  jupyter-notebook
Flowtron
Flowtron is an auto-regressive flow-based generative network for text to speech synthesis with control over speech variation and style transfer
Stars: ✭ 546 (+0.37%)
Mutual labels:  jupyter-notebook
Photomosaic
Creating fun photomosaics, GIFs, and murals from your family pictures using ML & similarity search
Stars: ✭ 540 (-0.74%)
Mutual labels:  jupyter-notebook
Video Classification
Tutorial for video classification/ action recognition using 3D CNN/ CNN+RNN on UCF101
Stars: ✭ 543 (-0.18%)
Mutual labels:  jupyter-notebook
Probabilistic Programming And Bayesian Methods For Hackers
aka "Bayesian Methods for Hackers": An introduction to Bayesian methods + probabilistic programming with a computation/understanding-first, mathematics-second point of view. All in pure Python ;)
Stars: ✭ 23,912 (+4295.59%)
Mutual labels:  jupyter-notebook
Machine Learning Notes
My continuously updated Machine Learning, Probabilistic Models and Deep Learning notes and demos (2000+ slides) 我不间断更新的机器学习,概率模型和深度学习的讲义(2000+页)和视频链接
Stars: ✭ 5,390 (+890.81%)
Mutual labels:  jupyter-notebook
Sqlworkshops
SQL Server Workshops
Stars: ✭ 544 (+0%)
Mutual labels:  jupyter-notebook

PDPbox

PyPI version Build Status

python partial dependence plot toolbox

Update! 😹

Update for versions:

xgboost==1.3.3
matplotlib==3.1.1
sklearn==0.23.1

Motivation

This repository is inspired by ICEbox. The goal is to visualize the impact of certain features towards model prediction for any supervised learning algorithm. (now support all scikit-learn algorithms)

The common headache

When using black box machine learning algorithms like random forest and boosting, it is hard to understand the relations between predictors and model outcome.

For example, in terms of random forest, all we get is the feature importance. Although we can know which feature is significantly influencing the outcome based on the importance calculation, it really sucks that we don’t know in which direction it is influencing. And in most of the real cases, the effect is non-monotonic.

We need some powerful tools to help understanding the complex relations between predictors and model prediction.

Highlight

  1. Helper functions for visualizing target distribution as well as prediction distribution.
  2. Proper way to handle one-hot encoding features.
  3. Solution for handling complex mutual dependency among features.
  4. Support multi-class classifier.
  5. Support two variable interaction partial dependence plot.

Documentation

Tutorials

https://github.com/SauceCat/PDPbox/tree/master/tutorials

Change Logs

https://github.com/SauceCat/PDPbox/blob/master/CHANGELOG.md

Installation

  • through pip (latest stable version: 0.2.1)

    $ pip install pdpbox
    
  • through git (latest develop version)

    $ git clone https://github.com/SauceCat/PDPbox.git
    $ cd PDPbox
    $ python setup.py install
    

Testing

PDPbox can be tested using tox.

  • First install tox and tox-venv

    $ pip install tox tox-venv
    
  • Call tox inside the pdpbox clone directory. This will run tests with python3.7.

  • To test the documentation, call tox -e docs. The documentation should open up in your browser if it is successfully build. Otherwise, the problem with the documentation will be reported in the output of the command.

Gallery

  • PDP: PDP for a single feature

  • PDP: PDP for a multi-class

  • PDP Interact: PDP Interact for two features with contour plot

  • PDP Interact: PDP Interact for two features with grid plot

  • PDP Interact: PDP Interact for multi-class

  • Information plot: target plot for a single feature

  • Information plot: target interact plot for two features

  • Information plot: actual prediction plot for a single feature

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].