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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 913c46f7da77bf0be6392e7a678bad5c9e504ce6133b4cb68a5f79f014148f9e |
|
MD5 | eb31633ab4093de88ab4876a09310b6c |
|
BLAKE2b-256 | dae129e990e9aae39a795c21f592dc85d17190687cc20a536d3d9437e397c9ed |
Close
Hashes for conformal_region_designer-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f114087c0b7d75b346794cf8bba9946822e9b3f4c6d9c5173bf250d181fa2864 |
|
MD5 | 42058990b74feef721a6410cf38e34cd |
|
BLAKE2b-256 | 1aa6daf225907515da5070fe4e8449b5c167e7e8a7bee0a5e9688eec9985ab45 |