Skip to main content

sicore package

PyPI - Version PyPI - Python Version PyPI - License

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/

Metadata

Release files for sicore 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sicore 3.0.0
File Size Uploaded
sicore-3.0.0.tar.gz 117.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sicore 3.0.0
File Interpreter ABI Platform
sicore-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 169.9 kB

Release files / sicore-3.0.0.tar.gz

Download URL sicore-3.0.0.tar.gz
Size 117.1 kB
Tags Source
SHA-256 checksum
How to use checksums
373d1102cc3ee83cdec58e3fb42f5dec2b8a95f3e4e42aa445081f2ff7160a58
BLAKE2b-256 checksum
How to use checksums
eda04c33c6680348155248331f73db8a15269d5d0ea36cad54400d7495c6eb06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release files / sicore-3.0.0-py3-none-any.whl

Download URL sicore-3.0.0-py3-none-any.whl
Size 52.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a42668c11aafec22ea9ef965a7ea17bcba4292da1afc34becff3a2f5ae53dc7
BLAKE2b-256 checksum
How to use checksums
2e66ca4fc03b1f8f230cd4fe510cd1740adf127a52c4f503109d945ab3fc82cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.5

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page