Skip to main content

Extra models for scikit-learn w/ built-in support for nominal attributes

Project description

sklearn_nominal

Extra models for scikit-learn, including Decision/Regression Trees with support for nominal values

Exporting to svg/png/pdf

To export tree graphs to those formats, you need pygraphviz (and in the future, possibly other dependencies). To install those dependencies, use:

pip install sklearn_nominal[export]

Before that, make sure to install graphviz (with headers) and cairo. In Ubuntu 24.04:

sudo apt install libgraphviz-dev graphviz cairosvg 

Developing sklearn_nominal

We use uv for project management.

First run

Install deps:

uv sync --dev --extra export

Install pre-commit hooks

uv run pre-commit install
uv tool install poethepoet

Running pre commit hooks

pre-commit run --all-files

Install PoeThePoet task runner

Running tests, linter, formatter

poe lint
poe format
poe test

Updating docs

poe docs

Running benchmarks

uv run benchmark/benchmark_openml.py

Publishing to pipy

Via github:

#(after pushing a version you want to publish)
git tag v[version]
git push --tags

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

sklearn_nominal-0.0.3.tar.gz (6.5 MB view details)

Uploaded Source

Built Distribution

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

sklearn_nominal-0.0.3-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

Details for the file sklearn_nominal-0.0.3.tar.gz.

File metadata

  • Download URL: sklearn_nominal-0.0.3.tar.gz
  • Upload date:
  • Size: 6.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sklearn_nominal-0.0.3.tar.gz
Algorithm Hash digest
SHA256 72eb6ff228b24e76b1492353b61221dd84a3d5a952cdbb96d290a64781e598fb
MD5 51d2bba02612d7e848acc19c08f2aba5
BLAKE2b-256 628829d2373f1a00fd64d48d464fe7277ba3e5d68230191616d42813a0226610

See more details on using hashes here.

Provenance

The following attestation bundles were made for sklearn_nominal-0.0.3.tar.gz:

Publisher: pipy_release.yml on facundoq/sklearn_nominal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sklearn_nominal-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sklearn_nominal-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36b0981da20edce87142233b77c54f7b5f65eebf66512d3f3fcf3105cd3fe624
MD5 98044f6c54101ad9c8fe49e3d360c907
BLAKE2b-256 240a59a152775a824d403fe5b64f902933c03747f56c2910e4b67799aa994118

See more details on using hashes here.

Provenance

The following attestation bundles were made for sklearn_nominal-0.0.3-py3-none-any.whl:

Publisher: pipy_release.yml on facundoq/sklearn_nominal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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