Skip to main content

Core Package for Selective Inference

Project description

sicore package

This package provides core functions for selective inference.

Detailed API reference is here.

Installation

This package requires python 3.10 or higher and automatically installs any dependent packages. If you want to use tensorflow and pytorch's tensors, please install them manually.

$ pip install sicore

Uninstall :

$ pip uninstall sicore

Module Contents

The following modules can be imported by from sicore import *.

Selective Inference

  • SelectiveInferenceNorm : Selective inference for the normal distribution.
  • SelectiveInferenceChi : Selective inference for the chi distribution.
  • SelectiveInferenceResult: Data class for the result of selective inference.

Evaluation

  • rejection_rate(): Computes rejection rate from the list of SelectiveInferenceResult objects or p-values.

Figure

  • pvalues_hist() : Draws a histogram of p-values.
  • pvalues_qqplot() : Draws a uniform Q-Q plot of p-values.
  • SummaryFigure: Draws a summary figure.

Interval Operations

  • RealSubset : Class for representing a subset of real numbers, which provides many operations with intuitive syntax.
  • complement() : Take the complement of intervals.
  • union() : Take the union of two intervals.
  • intersection() : Take the intersection of two intervals.
  • difference() : Take the difference of first intervals with second intervals.
  • symmetric_difference() : Take the symmetric difference of two intervals.

Inequalities Solver

  • polynomial_below_zero() : Compute intervals where a given polynomial is below zero.
  • polytope_below_zero() : Compute intervals where a given polytope is below zero.
  • linear_polynomials_below_zero: Compute intervals where given degree-one polynomials are all below zero.

Truncated Cumulative Distribution Function

  • truncated_cdf(): Compute the truncated cumulative distribution function of a given distribution.

Non-Gaussian Random Variables

  • generate_non_gaussian_rv(): Generate a standardized random variable in a given rv_name family with a given Wasserstein distance from the standard gaussian distribution.

Uniformity Test

  • uniformity_test(): Conduct multiple uniformity tests on the given samples.

Constructor

  • OneVector : Vector whose elements at specified positions are set to 1, and 0 otherwise.
  • construct_projection_matrix() : Construct projection matrix from basis.

Others

Execute code test :

$ pytest tests/

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

sicore-2.4.2.tar.gz (113.5 kB view details)

Uploaded Source

Built Distribution

sicore-2.4.2-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file sicore-2.4.2.tar.gz.

File metadata

  • Download URL: sicore-2.4.2.tar.gz
  • Upload date:
  • Size: 113.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for sicore-2.4.2.tar.gz
Algorithm Hash digest
SHA256 5132ddeaa15192d89666853d2eeeb4cf48bf800816c808a927652c7d6266ad21
MD5 b91b3158316377d0a4c6efe24d75011e
BLAKE2b-256 9090120d7aeb73ff0811a5c10fdd3ef300ccdeed4e0b0669501f7664734d9d7b

See more details on using hashes here.

File details

Details for the file sicore-2.4.2-py3-none-any.whl.

File metadata

  • Download URL: sicore-2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for sicore-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 11c068fc58c1ecd8d9134511ed725ac20ba39aa86b97eec2d65b2929e27c81b0
MD5 2000b602a1f1b26706d6b23de8162662
BLAKE2b-256 0d3088693c0db70f8e3f4b50595750b958d98cdd128944d5aba2051306ba2444

See more details on using hashes here.

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