Metadata-Version: 2.1
Name: torchlikelihoods
Version: 0.0.6
Summary: TorchLikelihoods: User-friendly handling of likelihoods in Pytorch
Home-page: https://github.com/psanch21/torchlikelihoods
Author: Pablo Sanchez Martin
Author-email: psanch2103@gmail.com
License: MIT
Keywords: Distributions,Likelihoods,Heterogeneous Data,Pytorch,Scalers
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch (>=1.10)
Requires-Dist: numpy (>=1.19)
Provides-Extra: dev
Requires-Dist: pytest (>=3.7) ; extra == 'dev'

# TorchLikelihoods

A library for handling likelihoods in PyTorch for any type of data



## Installation

Run the following to install

```
pip install torchlikelihoods
```

## Usage

```python
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?

```bash
pip install -e .[dev]
```



### Testing
To run the tests:

```bash
make test
pytest
```
