icecube-voka


Nameicecube-voka JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummarySanity checks on sequences/histograms using ML techniques.
upload_time2024-11-18 21:08:07
maintainerNone
docs_urlNone
authorNone
requires_python<3.14,>=3.9
licenseMIT License Copyright (c) 2020 IceCube Open Source Software Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords histogram comparison outlier detection statistical tests empirical p-value threshold poissonian statistics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--- Top of README Badges (automated) --->
[![PyPI](https://img.shields.io/pypi/v/icecube-voka)](https://pypi.org/project/icecube-voka/) [![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/icecube/voka?include_prereleases)](https://github.com/icecube/voka/) [![Versions](https://img.shields.io/pypi/pyversions/icecube-voka.svg)](https://pypi.org/project/icecube-voka) [![PyPI - License](https://img.shields.io/pypi/l/icecube-voka)](https://github.com/icecube/voka/blob/main/LICENSE) [![GitHub issues](https://img.shields.io/github/issues/icecube/voka)](https://github.com/icecube/voka/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aopen) [![GitHub pull requests](https://img.shields.io/github/issues-pr/icecube/voka)](https://github.com/icecube/voka/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aopen)
<!--- End of README Badges (automated) --->
# voka
Histograms comparisons using statistical tests as input to an outlier detection algorithm.

## Problem Statement
Let's say you have a large number of histograms produced by a complex system (e.g. scientific simulation chain 
for a large-scale physics experiment) and you want to compare one large set of histograms to another to determine 
differences.  When the number of histograms becomes large (>100) it can be difficult for human observers to 
efficiently scan them for subtle differences buried in statistical flucuations.  The project is a tool that
can help detect those differences.

**This method can be viewed as emperically determining a p-value threshold from benchmark sets, valid for both 
discrete  and continuous distributions, and both Poissonian and non-Poissonian statistics.**

See the [wiki](https://github.com/icecube/voka/wiki) for more details.

# Dependencies

* numpy
* matplotlib
* scipy (optional)

```
   numpy (basic_example,classic_fit_example,standard_distribution_comparisons,stochastic_example,test.test_lof,test.test_metrics,test.test_voka,vanilla_gaussian,voka.lof)
    pylab (classic_fit_example,standard_distribution_comparisons,stochastic_example,vanilla_gaussian)
    scipy 
      \-optimize (classic_fit_example,standard_distribution_comparisons,stochastic_example,vanilla_gaussian)
      \-special (voka.metrics.llh)
      \-stats (standard_distribution_comparisons,stochastic_example,vanilla_gaussian)
    voka 
      \-compare (test.test_metrics)
      \-lof (test.test_lof)
      \-metrics 
      | \-ad (test.test_metrics)
      | \-bdm (test.test_metrics)
      | \-chisq (standard_distribution_comparisons,stochastic_example,test.test_metrics,vanilla_gaussian)
      | \-cvm (test.test_metrics)
      | \-ks (test.test_metrics)
      | \-llh (test.test_metrics)
      \-model (basic_example,test.test_voka)

```


# Test Coverage
Measured with [coverage](https://coverage.readthedocs.io/en/6.2/).

As of January 14th, 2022:
```
Name                 Stmts   Miss  Cover   Missing
--------------------------------------------------
voka/__init__.py         0      0   100%
voka/compare.py         12      2    83%   37-38
voka/lof.py             26      0   100%
voka/metrics.py        115     17    85%   39-42, 60, 80, 89, 113, 141, 154, 162-163, 165-166, 168-169, 184
voka/model.py           36      6    83%   78-87
voka/two_sample.py      38     38     0%   2-90
--------------------------------------------------
TOTAL                  227     63    72%
```

## Running Tests
```sh
$ python3 -m unittest
$ coverage run --source=voka -m unittest
$ coverage report -m
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "icecube-voka",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.14,>=3.9",
    "maintainer_email": null,
    "keywords": "histogram comparison, outlier detection, statistical tests, empirical p-value threshold, poissonian statistics",
    "author": null,
    "author_email": "IceCube <developers@icecube.wisc.edu>",
    "download_url": "https://files.pythonhosted.org/packages/f3/e0/b291e3f4e33fc14eef108ca66b12e6733f62bd5b02884953a785885da84a/icecube_voka-0.1.2.tar.gz",
    "platform": null,
    "description": "<!--- Top of README Badges (automated) --->\n[![PyPI](https://img.shields.io/pypi/v/icecube-voka)](https://pypi.org/project/icecube-voka/) [![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/icecube/voka?include_prereleases)](https://github.com/icecube/voka/) [![Versions](https://img.shields.io/pypi/pyversions/icecube-voka.svg)](https://pypi.org/project/icecube-voka) [![PyPI - License](https://img.shields.io/pypi/l/icecube-voka)](https://github.com/icecube/voka/blob/main/LICENSE) [![GitHub issues](https://img.shields.io/github/issues/icecube/voka)](https://github.com/icecube/voka/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aopen) [![GitHub pull requests](https://img.shields.io/github/issues-pr/icecube/voka)](https://github.com/icecube/voka/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aopen)\n<!--- End of README Badges (automated) --->\n# voka\nHistograms comparisons using statistical tests as input to an outlier detection algorithm.\n\n## Problem Statement\nLet's say you have a large number of histograms produced by a complex system (e.g. scientific simulation chain \nfor a large-scale physics experiment) and you want to compare one large set of histograms to another to determine \ndifferences.  When the number of histograms becomes large (>100) it can be difficult for human observers to \nefficiently scan them for subtle differences buried in statistical flucuations.  The project is a tool that\ncan help detect those differences.\n\n**This method can be viewed as emperically determining a p-value threshold from benchmark sets, valid for both \ndiscrete  and continuous distributions, and both Poissonian and non-Poissonian statistics.**\n\nSee the [wiki](https://github.com/icecube/voka/wiki) for more details.\n\n# Dependencies\n\n* numpy\n* matplotlib\n* scipy (optional)\n\n```\n   numpy (basic_example,classic_fit_example,standard_distribution_comparisons,stochastic_example,test.test_lof,test.test_metrics,test.test_voka,vanilla_gaussian,voka.lof)\n    pylab (classic_fit_example,standard_distribution_comparisons,stochastic_example,vanilla_gaussian)\n    scipy \n      \\-optimize (classic_fit_example,standard_distribution_comparisons,stochastic_example,vanilla_gaussian)\n      \\-special (voka.metrics.llh)\n      \\-stats (standard_distribution_comparisons,stochastic_example,vanilla_gaussian)\n    voka \n      \\-compare (test.test_metrics)\n      \\-lof (test.test_lof)\n      \\-metrics \n      | \\-ad (test.test_metrics)\n      | \\-bdm (test.test_metrics)\n      | \\-chisq (standard_distribution_comparisons,stochastic_example,test.test_metrics,vanilla_gaussian)\n      | \\-cvm (test.test_metrics)\n      | \\-ks (test.test_metrics)\n      | \\-llh (test.test_metrics)\n      \\-model (basic_example,test.test_voka)\n\n```\n\n\n# Test Coverage\nMeasured with [coverage](https://coverage.readthedocs.io/en/6.2/).\n\nAs of January 14th, 2022:\n```\nName                 Stmts   Miss  Cover   Missing\n--------------------------------------------------\nvoka/__init__.py         0      0   100%\nvoka/compare.py         12      2    83%   37-38\nvoka/lof.py             26      0   100%\nvoka/metrics.py        115     17    85%   39-42, 60, 80, 89, 113, 141, 154, 162-163, 165-166, 168-169, 184\nvoka/model.py           36      6    83%   78-87\nvoka/two_sample.py      38     38     0%   2-90\n--------------------------------------------------\nTOTAL                  227     63    72%\n```\n\n## Running Tests\n```sh\n$ python3 -m unittest\n$ coverage run --source=voka -m unittest\n$ coverage report -m\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2020 IceCube Open Source Software  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Sanity checks on sequences/histograms using ML techniques.",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://pypi.org/project/icecube-voka/",
        "Source": "https://github.com/icecube/voka",
        "Tracker": "https://github.com/icecube/voka/issues"
    },
    "split_keywords": [
        "histogram comparison",
        " outlier detection",
        " statistical tests",
        " empirical p-value threshold",
        " poissonian statistics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea05e891bae2035b257ea8bc1f89be9016d3b5e1866253f9feaf5f6d201a27da",
                "md5": "bc9313c0f0e77c2c4337411b83bc9505",
                "sha256": "31c18c77f55955de18bfddf22908dac65076e955b0624cf972c82c1c17b4fa70"
            },
            "downloads": -1,
            "filename": "icecube_voka-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bc9313c0f0e77c2c4337411b83bc9505",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.14,>=3.9",
            "size": 13095,
            "upload_time": "2024-11-18T21:08:06",
            "upload_time_iso_8601": "2024-11-18T21:08:06.292689Z",
            "url": "https://files.pythonhosted.org/packages/ea/05/e891bae2035b257ea8bc1f89be9016d3b5e1866253f9feaf5f6d201a27da/icecube_voka-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f3e0b291e3f4e33fc14eef108ca66b12e6733f62bd5b02884953a785885da84a",
                "md5": "7ab46978209f807bcd487cec4ca6cfcd",
                "sha256": "56838f85c57de213b31e8678944e9193c96e6c8ce8a23accc49e59c3509677e5"
            },
            "downloads": -1,
            "filename": "icecube_voka-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "7ab46978209f807bcd487cec4ca6cfcd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.14,>=3.9",
            "size": 12574,
            "upload_time": "2024-11-18T21:08:07",
            "upload_time_iso_8601": "2024-11-18T21:08:07.414040Z",
            "url": "https://files.pythonhosted.org/packages/f3/e0/b291e3f4e33fc14eef108ca66b12e6733f62bd5b02884953a785885da84a/icecube_voka-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-18 21:08:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "icecube",
    "github_project": "voka",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "icecube-voka"
}
        
Elapsed time: 0.48231s