clausal-sklearn
scikit-learn predicates for Clausal Prolog.
Wraps scikit-learn as Clausal Prolog predicates: load datasets, build
and fit estimators, predict, score and transform. Data flows through
tagged tuples (est, dataset, fitted, split).
Install
pip install clausal-sklearn
scikit-learn is pulled in as a dependency. load_csv/3 also needs
pandas: pip install "clausal-sklearn[csv]". Requires Python 3.13 or later.
Use
Import the predicates into a seam (.seam) module, as the package's own
tests do. A Clausal Prolog (.clausal) module reaches Python only through
the seam: put the imports in a .seam module and list it under
[tool.clausal] python_bridges in your project's pyproject.toml (see
Importing Prolog).
This test, from tests/fixtures/sklearn_basic.seam,
shows the shape of a call:
-import_from(sklearn, [algorithm])
test("algorithm random_forest is classifier") <- (
algorithm("random_forest", "classifier")
)
Documentation
License
MIT
Metadata
Release files for clausal-sklearn 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clausal_sklearn-0.1.0.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clausal_sklearn-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.0 kB
Release files / clausal_sklearn-0.1.0.tar.gz
| Download URL | clausal_sklearn-0.1.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f63207beebb54f05cc576a72498225056a7844d8a04575a5e30c8b9c25e2b2b3
|
|
BLAKE2b-256 checksum How to use checksums |
e62143d64d74fac385e544dc89ae6ece7b8668dca3ded7aca06d59d6065e9d95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency logRelease files / clausal_sklearn-0.1.0-py3-none-any.whl
| Download URL | clausal_sklearn-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4db09e3c9e7114614536535d18b68ad3875c94950520fb99d6810573e937cb68
|
|
BLAKE2b-256 checksum How to use checksums |
2b8ab1e29e47ff951e6ee065a5fab388a8919778b82d488e7faf7e56d32973b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.
Transparency log