Skip to main content

RIPE

Implementation of a rule based prediction algorithm called RIPE (Rule Induction Partitioning Estimate). RIPE is a deterministic and interpretable algorithm, for regression problem. It has been presented at the International Conference on Machine Learning and Data Mining in Pattern Recognition 2018 (MLDM 18). The paper is available in arXiv https://arxiv.org/abs/1807.04602.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

RIPE is developed in Python version 2.7. It requires some usual packages

  • NumPy (post 1.13.0)
  • Scikit-Learn (post 0.19.0)
  • Pandas (post 0.16.0)
  • SciPy (post 1.0.0)
  • Matplotlib (post 2.0.2)
  • Seaborn (post 0.8.1)

See requirements.txt.

sudo pip install package_name

To install a specific version

sudo pip install package_name==version

Installing

The latest version can be installed from the master branch using pip:

pip install git+git://github.com/VMargot/RIPE.git

Another option is to clone the repository and install using python setup.py install or python setup.py develop.

Usage

RIPE has been developed to be used as a regressor from the package scikit-learn.

Training

from sklearn import datasets
iris = datasets.load_iris()
X, y = iris.data, iris.target

ripe = RIPE.Learning()
ripe.fit(X, y)

Predict

ripe.predict(X)

Score

ripe.score(X,y)

Inspect rules:

To have the Pandas DataFrame of the selected rules

ripe.selected_rs.to_df()

Or, one can use

ripe.make_selected_df()

To draw the distance between selected rules

ripe.plot_dist()

To draw the count of occurrence of variables in the selected rules

ripe.plot_counter_variables()

Notes

This implementation is in progress. If you find a bug, or something witch could be improve don't hesitate to contact me.

Authors

  • Vincent Margot

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU v3.0 - see the LICENSE.md file for details

Metadata

Release files for ripe-algorithm 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ripe-algorithm 0.1.6
File Size Uploaded
ripe-algorithm-0.1.6.tar.gz 2.3 MB Details

Release files / ripe-algorithm-0.1.6.tar.gz

Download URL ripe-algorithm-0.1.6.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6d54dba3bb59b5caeeb6119f19ea402a0598f4af98785476239dfac70cdcc4ea
BLAKE2b-256 checksum
How to use checksums
ec47a33bc5ef7dad45e364ee9bc741b498a68b0d5e2c14952e383c44d1ad510c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page