Creates intelligently shaped conformal prediction regions that respect multimodality and convexity.
Project description
Conformal Region Designer
Welcome to the Conformal Region Designer package! This package provides a set of tools and utilities for designing and visualizing conformal regions.
Installation
To install the Conformal Region Designer package, you can use pip:
pip install conformal-region-designer
Usage
The following code creates a conformal region creator with a target of 90% coverage, using a kernel density estimator to estimate the density of the data, a mean shift algorithm to estimate the center of the data, and an ellipse to define the region.
import conformal_region_designer as crd
pcr = crd.ConformalRegion('kde', 'meanshift', 'ellipse', 0.90)
pcr.fit(Z_cal_one)
pcr.conformalize(Z_cal_one)
The regions can be visualized using the following code:
fig, ax = plt.subplots()
pcr.plot(ax=ax)
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
Close
Hashes for conformal_region_designer-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8091ce88d18e47a9def4e0c296f53cf4f49d0eace0e8aac3458944666971174 |
|
MD5 | c9ce9aaf3513056055503ec87e8f17dc |
|
BLAKE2b-256 | b36319fb835b9c7c26ebd5f7b6eb9d6a847120af63549c63823ff454bf10a8c5 |
Close
Hashes for conformal_region_designer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bc2f74de8999ba49651d1dc1dad4b539ad6c004671ccaaa1dca72d273545e96 |
|
MD5 | 967f8f3c00b1166cbe3dde98edb4fd74 |
|
BLAKE2b-256 | 9c4208a4fede049cb70b97d03ca25d79a6154bc961200c4045d0b2c00d9ea733 |