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

pip install rulekit

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.

If you don’t have JDK installed on your computer you can quickly set it up using install-jdk package.

pip install install-jdk
import jdk
jdk.install('11', jre=True)

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.24.2.tar.gz (39.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rulekit-2.1.24.2-py3-none-any.whl (39.0 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rulekit-2.1.24.2.tar.gz
Algorithm Hash digest
SHA256 22033d7c91ebc280cf12a7023bc803eb7071a44b531c387c52e5825dce95a360
MD5 61470c8244428e84901d28beffd01eda
BLAKE2b-256 2fb6782e94414f8e49db9187364fc267142352774cace3543d1f7580fa40e9bd

See more details on using hashes here.

File details

Details for the file rulekit-2.1.24.2-py3-none-any.whl.

File metadata

  • Download URL: rulekit-2.1.24.2-py3-none-any.whl
  • Upload date:
  • Size: 39.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for rulekit-2.1.24.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd4e898fa6d1d3f0e2c9752ca958d87784d73f4fcd5d66f6326fb60b029ecc51
MD5 925713706d4af2855cf6e7b3ab5e4925
BLAKE2b-256 4b49cb7dd12cc05fe866e44ca8f0dadc64ae762c8c6cb18b7a09afafdcc4293f

See more details on using hashes here.

Supported by

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