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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rulekit-2.1.24.2.tar.gz | 39.0 MB | Without provenance | Details for rulekit-2.1.24.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rulekit-2.1.24.2-py3-none-any.whl | Python 3 | none | any | Details for rulekit-2.1.24.2-py3-none-any.whl |
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
|
Security for rulekit 2.1.24.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.