Skip to main content

Core Package for Selective Inference

Project description

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/

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.6.0.tar.gz (114.2 kB view details)

Uploaded Source

Built Distribution

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

sicore-2.6.0-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sicore-2.6.0.tar.gz
Algorithm Hash digest
SHA256 55955934e5daed0dafc0748339b3e29cdfbe633a6bc4fe208eb961eb4d93ba38
MD5 0ad0517682089ec932b1f400741e2265
BLAKE2b-256 07a186e9f0de93c43aa503dab5c699f1cc9b3d1727d024eeada74feae0ee99e9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sicore-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f49aa1c55f3b68a06c878ca6c69981c0c80ffd1308d9ff4847df86ddd75331fd
MD5 6ec48767ed81d1c0bbf56ec996b3285f
BLAKE2b-256 56fa2e938d6cb478a078817a21552590f5df09f9363649f0ddce4307d059087e

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