Skip to main content

Comprehensive suite for rule-based learning

Project description

Coverage Status Tests Status Flake8 Status PyPI PyPI - Downloads

Rulekit

This package is python wrapper for RuleKit library - a versatile tool for rule learning.

Based on a sequential covering induction algorithm, it is suitable for classification, regression, and survival problems.

Installation

NOTE: This package is a wrapper for Java library, and requires Java Development Kit version 8 or later to be installed on the computer. Both Open JDK and Oracle implementations are supported.

pip install rulekit

Running tests

If you're running tests for the first time (or you want to update existing tests resources) you need to download tests resources from RuleKit repository. You can do it by running:

python tests/resources.py download

Runing tests:
In directory where setup.py file exists.

python -m unittest discover ./tests

Sample usage

from sklearn.datasets import load_iris

from rulekit.classification import RuleClassifier
 
X, y = load_iris(return_X_y=True)
 
clf = RuleClassifier()
clf.fit(X, y)
prediction = clf.predict(X)
 
print(prediction)

Documentation

Full documentation is available here

Licensing

The software is publicly available under GNU AGPL-3.0 license. Any derivative work obtained under this license must be licensed under the AGPL if this derivative work is distributed to a third party. For commercial projects that require the ability to distribute RuleKit code as part of a program that cannot be distributed under the AGPL, it may be possible to obtain an appropriate license from the authors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rulekit-2.1.21.0.tar.gz (39.0 MB view details)

Uploaded Source

File details

Details for the file rulekit-2.1.21.0.tar.gz.

File metadata

  • Download URL: rulekit-2.1.21.0.tar.gz
  • Upload date:
  • Size: 39.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.10

File hashes

Hashes for rulekit-2.1.21.0.tar.gz
Algorithm Hash digest
SHA256 e1c59a235349bc09b9dacecad9d491e0fc9f425481f5b00568aaab040795008e
MD5 db1cdcc9eea44eb1139b3f85a4ccd138
BLAKE2b-256 c5a3baab48e7bd4a7f2a14e3783eea7f89bfa539c425316133cd1fe0492d563c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page