{"id":22419838,"url":"https://github.com/zachcoleman/fast-stats","last_synced_at":"2025-08-01T04:31:52.880Z","repository":{"id":39508264,"uuid":"494646601","full_name":"zachcoleman/fast-stats","owner":"zachcoleman","description":"A fast and simple library for calculating basic statistics written in Rust and Python","archived":false,"fork":false,"pushed_at":"2023-07-05T17:23:48.000Z","size":126,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-08T11:12:23.850Z","etag":null,"topics":["performance","python","rust","statistics"],"latest_commit_sha":null,"homepage":"https://zachcoleman.github.io/fast-stats/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachcoleman.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}},"created_at":"2022-05-21T01:07:12.000Z","updated_at":"2022-08-21T16:16:14.000Z","dependencies_parsed_at":"2023-02-01T00:46:35.173Z","dependency_job_id":null,"html_url":"https://github.com/zachcoleman/fast-stats","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcoleman%2Ffast-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcoleman%2Ffast-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcoleman%2Ffast-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachcoleman%2Ffast-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachcoleman","download_url":"https://codeload.github.com/zachcoleman/fast-stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228330032,"owners_count":17903019,"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":["performance","python","rust","statistics"],"created_at":"2024-12-05T16:16:56.500Z","updated_at":"2024-12-05T16:16:56.618Z","avatar_url":"https://github.com/zachcoleman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/zachcoleman/fast-stats/tests.yml?branch=main)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/fast-stats)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/fast-stats)\n[![License](https://img.shields.io/badge/license-Apache2.0-green)](./LICENSE)\n\n# fast-stats\n`fast-stats` is a fast and simple library for calculating basic statistics such as: precision, recall, and f1-score. The library also supports the calculation of confusion matrices. For examples, please look at the `examples/` folder.\n\n`fast-stats` is designed and tested against the `scikit-learn` library and provides formatted results to be a drop-in replacement in most cases. There are both generic functions like `fast_stats.precision` that provide significant speedup and specialized binary functions such as `fast_stats.binary_precision` that provide even faster optimal performance for binary data. `fast-stats` was specifically created to provide a limited alternative to `scikit-learn.metrics` for calculating statistics quickly on large multi-dimensional arrays or tensors such as those produced by computer vision models.\n\n[Benchmarks](examples/benchmarks.ipynb) show approximately: \n- 100x improvement in binary calculations\n- 10x improvement in multiclass calculations\n- 2x improvement in computing confusion matrices\n- 15% speed-up over an equivalent `numpy` binary calculation\n\nThe project was developed using the [maturin](https://maturin.rs) framework. \n\nSee docs here: https://zachcoleman.github.io/fast-stats/\n\n## Installation\nFrom PyPI:\n```shell\npip install fast-stats\n```\n\nBuild from source:\n```\nmaturin build -r -i=path/to/python\npip install .../fast-stats/target/wheels/\u003cwhl file name\u003e.whl\n```\n\n## Running Tests\nTests are run with `pytest`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachcoleman%2Ffast-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachcoleman%2Ffast-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachcoleman%2Ffast-stats/lists"}