Skip to main content

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.

Example Image

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conformal_region_designer-0.1.2.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conformal_region_designer-0.1.2-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file conformal_region_designer-0.1.2.tar.gz.

File metadata

File hashes

Hashes for conformal_region_designer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 913c46f7da77bf0be6392e7a678bad5c9e504ce6133b4cb68a5f79f014148f9e
MD5 eb31633ab4093de88ab4876a09310b6c
BLAKE2b-256 dae129e990e9aae39a795c21f592dc85d17190687cc20a536d3d9437e397c9ed

See more details on using hashes here.

File details

Details for the file conformal_region_designer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for conformal_region_designer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f114087c0b7d75b346794cf8bba9946822e9b3f4c6d9c5173bf250d181fa2864
MD5 42058990b74feef721a6410cf38e34cd
BLAKE2b-256 1aa6daf225907515da5070fe4e8449b5c167e7e8a7bee0a5e9688eec9985ab45

See more details on using hashes here.

Supported by

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