{"id":17136567,"url":"https://github.com/minaskar/sinflow","last_synced_at":"2025-07-25T12:33:38.746Z","repository":{"id":257824992,"uuid":"868101202","full_name":"minaskar/sinflow","owner":"minaskar","description":"Sliced Iterative Normalizing Flow with Minimal Dependencies","archived":false,"fork":false,"pushed_at":"2024-11-27T00:49:55.000Z","size":311,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T15:50:47.830Z","etag":null,"topics":["density-estimation","machine-learning","normalizing-flow","normalizing-flows","numpy","sampling","scikit-learn","scipy","spline","splines"],"latest_commit_sha":null,"homepage":"https://sinflow.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minaskar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-05T13:34:15.000Z","updated_at":"2025-03-19T21:38:46.000Z","dependencies_parsed_at":"2024-10-13T19:45:36.516Z","dependency_job_id":"134a079a-1179-4d59-b65a-4e6336929c8c","html_url":"https://github.com/minaskar/sinflow","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"73f40e58083ba93e0c3001dddcc84d7799e3ee2a"},"previous_names":["minaskar/sinflow"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/minaskar/sinflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minaskar%2Fsinflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minaskar%2Fsinflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minaskar%2Fsinflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minaskar%2Fsinflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minaskar","download_url":"https://codeload.github.com/minaskar/sinflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minaskar%2Fsinflow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265237720,"owners_count":23732517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["density-estimation","machine-learning","normalizing-flow","normalizing-flows","numpy","sampling","scikit-learn","scipy","spline","splines"],"created_at":"2024-10-14T20:04:42.953Z","updated_at":"2025-07-25T12:33:38.411Z","avatar_url":"https://github.com/minaskar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sinflow\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/minaskar/sinflow/blob/master/LICENSE)\n[![Documentation Status](https://readthedocs.org/projects/sinflow/badge/?version=latest)](https://sinflow.readthedocs.io/en/latest/?badge=latest)\n\n\n``sinflow`` is a Python implementation of the sliced iterative normalizing flow (SINF) algorithm\nfor density estimation and sampling. The package has minimal dependencies, requiring only\n``numpy`` and ``scipy``. The code is designed to be easy to use and flexible, with a focus on\nperformance and scalability. The package is designed to be used in a similar way to ``scikit-learn``,\nwith a simple and consistent API.\n\n## Documentation\n\nRead the docs at [sinflow.readthedocs.io](https://sinflow.readthedocs.io) for more information, examples and tutorials.\n\n## Installation\n\nTo install ``sinflow`` using ``pip`` run:\n\n```bash\npip install sinflow\n```\n\nor, to install from source:\n\n```bash\ngit clone https://github.com/minaskar/sinflow.git\ncd pocomc\npython setup.py install\n```\n\n## Basic example\n\nFor instance, if you wanted to draw samples from a 10-dimensional Rosenbrock distribution with a uniform prior, you would do something like:\n\n```python\nimport sinflow as sf\nimport numpy as np\nfrom sklearn.datasets import make_moons\n\n# Generate some data\nx, _ = make_moons(n_samples=5000, noise=0.15)\n\n# Fit a normalizing flow model\nflow = sf.Flow()\nflow.fit(x)\n\n# Sample from the model\nsamples = flow.sample(1000)\n\n# Evaluate the log-likelihood of the samples\nlog_prob = flow.log_prob(samples)\n\n# Evaluate the forward transformation\nz, log_det_forward = flow.forward(x)\n\n# Invert the transformation\nx_reconstructed, log_det_inverse = flow.inverse(z)\n```\n\n\n## Attribution \u0026 Citation\n\nPlease cite the following paper if you found this code useful in your research:\n\n```bash\n@article{karamanis2024sinflow,\n    title={},\n    author={},\n    journal={},\n    year={2024}\n}\n```\n\n## Licence\n\nCopyright 2024-Now Minas Karamanis and contributors.\n\n``sinflow`` is free software made available under the GPL-3.0 License. For details see the `LICENSE` file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminaskar%2Fsinflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminaskar%2Fsinflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminaskar%2Fsinflow/lists"}