Code Monkey home page Code Monkey logo

rice's Introduction

doc License: GPL v3

Status

push

maintained issues pr

Compatibilities

ubuntu unix

python

Contact

linkedin website mail

RICE

Implementation of a rule based prediction algorithm called RICE (Rule Induction Covering Estimator). RICE is a deterministic and interpretable algorithm, for regression problem.

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

RICE is developed in Python version 3.5 or greater. 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/RICE.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

rice = RICE.Learning()
rice.fit(X, y)

Predict

rice.predict(X)

Score

rice.score(X,y)

Inspect rules:

To have the Pandas DataFrame of the selected rules

rice.selected_rs.to_df()

Or, one can use

rice.make_selected_df()

To draw the distance between selected rules

rice.plot_dist()

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

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

rice's People

Contributors

vmargot avatar vmargot-adv avatar

Stargazers

Vishal Belsare avatar

Watchers

James Cloos avatar Christophe Geissler avatar boumlaik avatar

Forkers

vishalbelsare

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.