Skip to main content

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.

Metadata

Release files for rulekit 2.1.24.2

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

Source distribution (sdist)

Source distribution for rulekit 2.1.24.2
File Size Uploaded
rulekit-2.1.24.2.tar.gz 39.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for rulekit 2.1.24.2
File Interpreter ABI Platform
rulekit-2.1.24.2-py3-none-any.whl Python 3 none any Details

Total release size: 78.0 MB

Release files / rulekit-2.1.24.2.tar.gz

Download URL rulekit-2.1.24.2.tar.gz
Size 39.0 MB
Tags Source
SHA-256 checksum
How to use checksums
22033d7c91ebc280cf12a7023bc803eb7071a44b531c387c52e5825dce95a360
BLAKE2b-256 checksum
How to use checksums
2fb6782e94414f8e49db9187364fc267142352774cace3543d1f7580fa40e9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release files / rulekit-2.1.24.2-py3-none-any.whl

Download URL rulekit-2.1.24.2-py3-none-any.whl
Size 39.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cd4e898fa6d1d3f0e2c9752ca958d87784d73f4fcd5d66f6326fb60b029ecc51
BLAKE2b-256 checksum
How to use checksums
4b49cb7dd12cc05fe866e44ca8f0dadc64ae762c8c6cb18b7a09afafdcc4293f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.18

Release history Release notifications | RSS feed

This release

2.1.24.2 This release

2 release files

1.7.6

2 release files

1.7.5

2 release files

1.7.4

2 release files

1.7.3

2 release files

1.7.1

2 release files

1.6.4

2 release files

1.6.0

2 release files

1.5.7

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