Skip to main content

Package to produce (P)rediction (I)ntervals for (T)rees using (C)onformal (I)ntervals

Project description

Prediction Intervals for Trees using Conformal Intervals - pitci

A package to allow prediction intervals to be generated with tree based models using conformal intervals.


The basic idea of (inductive) conformal intervals is to use a calibration set to learn given quantile of the error distribution on that set. This quantile is used as the basis for prediction intervals on new data.

However it is not very useful in default state - which gives the same interval for every new prediction. 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 value that captures the confidence or familiarity we have we some data, compared to our calibration set, pitci uses the number of times each leaf node used to generate a prediction was visited across all rows of the calibration set and then summed across trees.

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

pitci-0.1.1.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

pitci-0.1.1-py3-none-any.whl (19.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page