Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnrlleclerc/lfi
Likelihood-free inference toy code
https://github.com/gnrlleclerc/lfi
Last synced: about 8 hours ago
JSON representation
Likelihood-free inference toy code
- Host: GitHub
- URL: https://github.com/gnrlleclerc/lfi
- Owner: GnRlLeclerc
- Created: 2024-11-08T15:04:55.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-08T19:29:19.000Z (2 months ago)
- Last Synced: 2024-11-20T14:32:38.831Z (about 2 months ago)
- Language: Python
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mixed Likelihood-Free Hypothesis Test
Toy implementation of the mLFHT method on a toy dataset.
Produces heatmaps of false positives / false negatives.Show the toy dataset:
```bash
python main.py
```## Project overview
```
├── generate_heatmap.py # Generate heatmaps of false positives / false negatives
├── kernels.py # Kernel function definitions
├── main.py # Showcase the distributions
├── metrics.py # Metrics (T, MMD) definitions
├── samples.py # Definition of sample distributions
└── show_heatmap.py # Show a heatmap with a proper legend```
Generate a heatmap (play with the parameters in `generate_heatmap.py`):
```bash
python generate_heatmap.py
```Display a heatmap:
```bash
python show_heatmap result.npy
```## Dataset
![Dataset](./images/dataset.png)
## Results
![False Negatives](./images/false%20negatives.png)