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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file conformal_region_designer-0.1.2.tar.gz.
File metadata
- Download URL: conformal_region_designer-0.1.2.tar.gz
- Upload date:
- Size: 5.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
913c46f7da77bf0be6392e7a678bad5c9e504ce6133b4cb68a5f79f014148f9e
|
|
| MD5 |
eb31633ab4093de88ab4876a09310b6c
|
|
| BLAKE2b-256 |
dae129e990e9aae39a795c21f592dc85d17190687cc20a536d3d9437e397c9ed
|
File details
Details for the file conformal_region_designer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: conformal_region_designer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f114087c0b7d75b346794cf8bba9946822e9b3f4c6d9c5173bf250d181fa2864
|
|
| MD5 |
42058990b74feef721a6410cf38e34cd
|
|
| BLAKE2b-256 |
1aa6daf225907515da5070fe4e8449b5c167e7e8a7bee0a5e9688eec9985ab45
|