TorchLikelihoods
A library for handling likelihoods in PyTorch for any type of data
Installation
Run the following to install
pip install torchlikelihoods
Usage
from torchlikelihoods import NormalLikelihood
import torch
num_samples, num_feats = 100, 5
normal_data = torch.randn((num_samples, num_feats))
lik = NormalLikelihood(domain_size=num_feats)
scaler = lik.get_scaler()
print(f"Domain size: {lik.domain_size()}")
print(f"Params size: {lik.params_size()}")
Do you want to get involved in the development?
pip install -e .[dev]
Testing
To run the tests:
make test
pytest
Metadata
Release files for torchlikelihoods 0.0.6.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| torchlikelihoods-0.0.6.4.tar.gz | 14.3 kB | Without provenance | Details for torchlikelihoods-0.0.6.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torchlikelihoods-0.0.6.4-py3-none-any.whl | Python 3 | none | any | Details for torchlikelihoods-0.0.6.4-py3-none-any.whl |
Total release size: 41.2 kB
Release files / torchlikelihoods-0.0.6.4.tar.gz
| Download URL | torchlikelihoods-0.0.6.4.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0dc8df7e51197eeefc54d5d8476e38b8e68d96cf0f11bae04f089d6891accbf
|
|
BLAKE2b-256 checksum How to use checksums |
18159cd3958c2c43166923e651b227ff02e954a51c2c7c0e3e5eeaa7f6ec2c4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Release files / torchlikelihoods-0.0.6.4-py3-none-any.whl
| Download URL | torchlikelihoods-0.0.6.4-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3fff23b4733a1af10a67bf5c4178f1e0c686a61be60d96c99e842c9ad49e9ff
|
|
BLAKE2b-256 checksum How to use checksums |
4d45160b1658fd1a80e7250f787faf0ea49283ffbd907a5f3ce999e10edf19fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Security for torchlikelihoods 0.0.6.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.