{"id":13478046,"url":"https://github.com/danielward27/flowjax","last_synced_at":"2026-02-18T22:02:36.196Z","repository":{"id":37856919,"uuid":"460385020","full_name":"danielward27/flowjax","owner":"danielward27","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-19T19:08:34.000Z","size":19190,"stargazers_count":211,"open_issues_count":6,"forks_count":20,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-01-26T01:55:21.932Z","etag":null,"topics":["jax","normalising-flows","normalizing-flows"],"latest_commit_sha":null,"homepage":"https://danielward27.github.io/flowjax/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielward27.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-02-17T10:24:41.000Z","updated_at":"2026-01-25T14:50:51.000Z","dependencies_parsed_at":"2023-02-19T01:01:07.490Z","dependency_job_id":"93bd83ac-9668-446a-8adc-9781f7e203bd","html_url":"https://github.com/danielward27/flowjax","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/danielward27/flowjax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielward27%2Fflowjax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielward27%2Fflowjax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielward27%2Fflowjax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielward27%2Fflowjax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielward27","download_url":"https://codeload.github.com/danielward27/flowjax/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielward27%2Fflowjax/sbom","scorecard":{"id":320564,"data":{"date":"2025-08-11","repo":{"name":"github.com/danielward27/flowjax","commit":"cabcb42bcfdd12baa16c020078ec5e097efeaac0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.2,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"15 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/danielward27/flowjax/test.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/docs.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/docs.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:26","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:29"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T01:14:48.314Z","repository_id":37856919,"created_at":"2025-08-18T01:14:48.314Z","updated_at":"2025-08-18T01:14:48.314Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jax","normalising-flows","normalizing-flows"],"created_at":"2024-07-31T16:01:51.727Z","updated_at":"2026-02-18T22:02:36.177Z","avatar_url":"https://github.com/danielward27.png","language":"Python","readme":"\n![FlowJAX](/docs/_static/logo_light.svg)\n\nDistributions, bijections and normalizing flows using Equinox and JAX\n-----------------------------------------------------------------------\n- Includes a wide range of distributions and bijections.\n- Distributions and bijections are PyTrees, registered through \n  [Equinox](https://github.com/patrick-kidger/equinox/) modules, making them\n  compatible with [JAX](https://github.com/google/jax) transformations.\n- Includes many state of the art normalizing flow models.\n- First class support for conditional distributions and density estimation.\n\n## Documentation\nAvailable [here](https://danielward27.github.io/flowjax/index.html).\n\n## Short example\nAs an example we will create and train a normalizing flow model to toy data in just a few lines of code:\n\n```python\nfrom flowjax.flows import block_neural_autoregressive_flow\nfrom flowjax.train import fit_to_data\nfrom flowjax.distributions import Normal\nimport jax.random as jr\nimport jax.numpy as jnp\n\ndata_key, flow_key, train_key, sample_key = jr.split(jr.key(0), 4)\n\nx = jr.uniform(data_key, (5000, 2))  # Toy data\n\nflow = block_neural_autoregressive_flow(\n    key=flow_key,\n    base_dist=Normal(jnp.zeros(x.shape[1])),\n)\n\nflow, losses = fit_to_data(\n    key=train_key,\n    dist=flow,\n    data=x,\n    learning_rate=5e-3,\n    max_epochs=200,\n    )\n\n# We can now evaluate the log-probability of arbitrary points\nlog_probs = flow.log_prob(x)\n\n# And sample the distribution\nsamples = flow.sample(sample_key, (1000, ))\n```\n\nThe package currently includes:\n- Many simple bijections and distributions, implemented as [Equinox](https://arxiv.org/abs/2111.00254) modules.\n- `coupling_flow` ([Dinh et al., 2017](https://arxiv.org/abs/1605.08803)) and `masked_autoregressive_flow` ([Kingma et al., 2016](https://arxiv.org/abs/1606.04934), [Papamakarios et al., 2017](https://arxiv.org/abs/1705.07057v4)) normalizing flow architectures.\n    - These can be used with arbitrary bijections as transformers, such as `Affine` or `RationalQuadraticSpline` (the latter used in neural spline flows; [Durkan et al., 2019](https://arxiv.org/abs/1906.04032)). \n- `block_neural_autoregressive_flow`, as introduced by [De Cao et al., 2019](https://arxiv.org/abs/1904.04676).\n- `planar_flow`, as introduced by [Rezende and Mohamed, 2015](https://arxiv.org/pdf/1505.05770.pdf).\n- `triangular_spline_flow`, introduced here.\n- Training scripts for fitting by maximum likelihood, variational inference, or using contrastive learning for sequential neural posterior estimation ([Greenberg et al., 2019](https://arxiv.org/abs/1905.07488); [Durkan et al., 2020](https://arxiv.org/abs/2002.03712])).\n- A bisection search algorithm that allows inverting some bijections without a\nknown inverse, allowing for example both sampling and density evaluation to be\nperformed with block neural autoregressive flows.\n\n## Installation\n```bash\npip install flowjax\n```\n\n## Warning\nThis package is in its early stages of development and may undergo significant changes, including breaking changes, between major releases. Whilst ideally we should be on version 0.y.z to indicate its state, we have already progressed beyond that stage. Any breaking changes will be in the release notes for each major release.\n\n## Development\nWe can install a version for development as follows\n```bash\ngit clone https://github.com/danielward27/flowjax.git\ncd flowjax\npip install -e .[dev]\nsudo apt-get install pandoc  # Required for building documentation\n```\n\n## Related\n- We make use of the [Equinox](https://arxiv.org/abs/2111.00254) package, which\n  facilitates defining models using a PyTorch-like syntax with Jax.\n- For applying parameterizations, we use\n  [paramax](https://github.com/danielward27/paramax).\n\n## Citation\nIf you found this package useful in academic work, please consider citing it using the\ntemplate below, filling in ``[version number]`` and ``[release year of version]`` to the\nappropriate values. Version specific DOIs\ncan be obtained from [zenodo](https://zenodo.org/records/10402073) if desired.\n\n```bibtex\n@software{ward2023flowjax,\n  title = {FlowJAX: Distributions and Normalizing Flows in Jax},\n  author = {Daniel Ward},\n  url = {https://github.com/danielward27/flowjax},\n  version = {[version number]},\n  year = {[release year of version]},\n  doi = {10.5281/zenodo.10402073},\n}\n```\n","funding_links":[],"categories":["Python","Models and Projects","Software","Recently Updated","Libraries"],"sub_categories":["[Feb 16, 2025](/content/2025/02/16/README.md)","New Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielward27%2Fflowjax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielward27%2Fflowjax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielward27%2Fflowjax/lists"}