Skip to main content

HighDim is a numerical package for computing the marginal density distribution.

Project description

high_dimensional_density

HighDim is a numerical package for computing the marginal density distribution. The algorithm is inspired by the paper: High-Dimensional Probability Estimation with Deep Density Models. This originally applied to verify the distribution of output of machine learning. The authors proposed the algorithm which mapped the complex high dimensional data into Dirichlet distribution. This approach preserve the number of dimension and gives us known and identical marginal density function.

The proof for the approach is in here: High-dimensional probability estimation for empirical data

Installation

pip install HighDim

Usage

 #The domain of high dimensional data
 data = np.random.rand(100, 10)

 # The marginal density distribution of x
 x = 0.3

 # The marginal density distribution of x for each dimension
 density = marginal_density(data, x)

 print(density)
 # [1.24974725e-119 2.12110416e-067 1.61715010e-097 5.76937215e-109
 # 1.63627432e-091 1.72724426e-126 1.49437302e-091 6.77392214e-064
 # 1.45718278e-120 3.84252945e-082]

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

HighDim-0.0.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

HighDim-0.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file HighDim-0.0.3.tar.gz.

File metadata

  • Download URL: HighDim-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.5

File hashes

Hashes for HighDim-0.0.3.tar.gz
Algorithm Hash digest
SHA256 84bfc41b0a00062cafb5dcdf76a49f7ee0200e11642e66f5beaf1d1b739817fd
MD5 cbc28fc469ee24e62929962879361a5e
BLAKE2b-256 f88efdf1d23f42f6c7773f72ee4b8741fdfae97587519bcdca2d31a3f597b125

See more details on using hashes here.

File details

Details for the file HighDim-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: HighDim-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.5

File hashes

Hashes for HighDim-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb4250714e8794adf7e8b4d340360bb5fe4fefe7454ea0eea6243a3a316602e
MD5 ca82c3bc9c5b22972c06d8da34b4cb1a
BLAKE2b-256 76a9c161a1bfc9d012f25066eb92cd0c8a486063f31cea59667dc28a5a3521cd

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