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.1.tar.gz (7.6 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.1-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sklearn_nominal-0.0.1.tar.gz
  • Upload date:
  • Size: 7.6 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.1.tar.gz
Algorithm Hash digest
SHA256 3e73c8d6bfdd55f381bb13b98fefd898c69c488a44c4ff939a8ba58b68af61cd
MD5 edf77643cf2b8b53f982f1cbe7fa6835
BLAKE2b-256 a1b46515ec88bab3da2ecfd1651bebcb73ece117ed1c55b3af9279c070a99646

See more details on using hashes here.

Provenance

The following attestation bundles were made for sklearn_nominal-0.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sklearn_nominal-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e464e04968870f91e3356b9bba25d03d899251a95d6500693b2fb5850d382bc0
MD5 1351f44a0c18695ec6d97e8d90b184a3
BLAKE2b-256 ebac2589fdd0126b0db9628b0932981e9ba1d4e24b5d20c8fcbb8aea75c0a15b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sklearn_nominal-0.0.1-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