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 hashes)

Uploaded Source

Built Distribution

conformal_region_designer-0.1.2-py3-none-any.whl (5.1 MB 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