Prediction Intervals for Trees using Conformal Intervals
Introduction
The basic idea of inductive conformal intervals is to use a calibration set to learn a given quantile of the error distribution on that set. This quantile is used as the basis for prediction intervals on new data.
However this is often not especially useful in practice as every new prediction will recieve the same interval. Instead we want to scale this interval according to the input data. Intuitively we want to increase the interval where we have less confidence about the data and associated prediction and decrease it where we have more confidence.
In order to produce a scaling factor value captures the confidence or familiarity we have with some data compared to our calibration set, pitci uses the number of training data rows that fell into the specific leaf nodes that were visited in making the prediction, summed across all trees.
For a full list of the supported libraries and more detail on the methods implmeneted, see the docs.
Install
The easiest way to get pitci is directly from PyPI using;
pip install pitci
Documentation
The documentation for pitci can be found here.
For information on how to build the documentation locally see the docs README.
Examples
There are various example notebooks demonstrating how to use the package in the examples folder in the repo.
Build
pitci uses flit as the package build tool.
To install pitci for development, use the following commands from the root directory;
pip install "flit>=2,<4"
flit install
The default deps flag for flit is all so this will install all of the libraries required for testing and creating the docs.
To install pitci in editable mode (i.e. the equivalent of pip install . -e) use the symlink flag;
flit install --symlink
See the flit docs for all the command line options for flit.
Metadata
Release files for pitci 0.3.1
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 |
|---|---|---|---|---|
| pitci-0.3.1.tar.gz | 73.2 kB | Without provenance | Details for pitci-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pitci-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pitci-0.3.1-py3-none-any.whl |
Total release size: 96.7 kB
Release files / pitci-0.3.1.tar.gz
| Download URL | pitci-0.3.1.tar.gz |
|---|---|
| Size | 73.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6485a1f93cfcd238efa923d66b63c2371ba6d8c4745888d4dd0ca910672e766
|
|
BLAKE2b-256 checksum How to use checksums |
6e69fe7e3c0abaf8c55c1e8048946a4263f322c529d545d3b185586ebe33b935
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / pitci-0.3.1-py3-none-any.whl
| Download URL | pitci-0.3.1-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
830d9678569c0adb34ec295bac01eb57ba50f1bb20500e22e3586959df32c0fe
|
|
BLAKE2b-256 checksum How to use checksums |
bf005b69ab46477f01b2a0f221077f6d6b02a6f8da1a35982d24488fa6b032aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Security for pitci 0.3.1
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.