Package to assist with analysis of tree-based models.
Project description
tabular-trees
Introduction
tabular-trees
is a package for making analysis on tree-based models easier.
Tree based models (specifically GBMs) from xgboost
, lightgbm
or scikit-learn
can be exported to TabularTrees
objects for further analysis.
The explain
and validate
modules contain functions that operate on TabularTrees
objects.
See the documentation for more information.
Install
The easiest way to get tabular-trees
is to install directly from pypi:
pip install tabular_trees
tabular-trees
works with GBMs from xgboost
, lightgbm
or scikit-learn
. These packages must be installed to use the relevant functionality from tabular-trees
.
[lightgbm, sklearn, xgboost]
are optional depedencies that can be specified for tabular-trees
. They can be installed along with tabular-trees
as follows:
pip install tabular_trees[lightgbm, sklearn]
Build
tabular-trees
uses poetry as the environment management and package build tool. Follow the instructions here to install.
To install the package locally, for development purposes along with the development dependencies run:
poetry install --with dev
dev
is an optional dependency group, the other one is docs
which is only required if building the documentation.
To install all the optional, development dependencies as well as all the extras for the package run:
poetry install --extras "lightgbm xgboost" --with dev,docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tabular_trees-0.3.0.tar.gz
.
File metadata
- Download URL: tabular_trees-0.3.0.tar.gz
- Upload date:
- Size: 29.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39a63447f1fbe6f8ef0ae86555b2133d20c84351f8d3f15f7f6f883fa6bb1ae |
|
MD5 | 90c54980efa13f04bc67b1f08fbb4349 |
|
BLAKE2b-256 | d4cd9afd5c04c8842eb85e956a06bd6f99b1d6cd4d480fba26c8c3c5b301bd96 |
File details
Details for the file tabular_trees-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: tabular_trees-0.3.0-py3-none-any.whl
- Upload date:
- Size: 36.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13c50e30e59d8ce10b04389ba9ed15724bc223f0d760c14607579f03f061729e |
|
MD5 | 5fd1a64367cce780a49cd1ffe60e65e3 |
|
BLAKE2b-256 | 65d9b038ea7fb60b940fd3ba602552677b4706a390c705e8a5956eb4f809f113 |