gprob


Namegprob JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryProbabilistic programming with arrays of Gaussian variables.
upload_time2024-09-15 17:56:23
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2024 Sergey A. Fedorov 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 gaussian distribution noise random variables stochastic processes gaussian processes probabilistic programming python numpy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # gprob
gprob is a probabilistic programming language for Gaussian random variables with exact conditioning, implemented as a python package.

A brief example:
```python
from gprob import normal

# Initializing two independent normal variables.
x = normal(0, 1)
y = normal(0, 1)

# The joint distribution of x and y under the contition that 
# their sum is zero is obtained as 
z = (x & y) | {x-y: 0}

z.cov()
```



## Requirements
* python >= 3.7
* [numpy](https://numpy.org/)

## Installation

```
pip install gprob
```

## Acknowledgements
gprob was inspired by [GaussianInfer](https://github.com/damast93/GaussianInfer), an accompaniment for the paper

D. Stein and S. Staton, "Compositional Semantics for Probabilistic Programs with Exact Conditioning," 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), Rome, Italy, 2021, pp. 1-13, doi: 10.1109/LICS52264.2021.9470552


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gprob",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "Gaussian distribution, Noise, Random variables, Stochastic processes, Gaussian processes, Probabilistic programming, Python, Numpy",
    "author": null,
    "author_email": "Sergey Fedorov <fedorov.s.a@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/3e/49/26dc2fdfe778edf0c6ff21c4f9bbc6ff0e003c960074c85b027eca2bd27a/gprob-0.1.0.tar.gz",
    "platform": null,
    "description": "# gprob\r\ngprob is a probabilistic programming language for Gaussian random variables with exact conditioning, implemented as a python package.\r\n\r\nA brief example:\r\n```python\r\nfrom gprob import normal\r\n\r\n# Initializing two independent normal variables.\r\nx = normal(0, 1)\r\ny = normal(0, 1)\r\n\r\n# The joint distribution of x and y under the contition that \r\n# their sum is zero is obtained as \r\nz = (x & y) | {x-y: 0}\r\n\r\nz.cov()\r\n```\r\n\r\n\r\n\r\n## Requirements\r\n* python >= 3.7\r\n* [numpy](https://numpy.org/)\r\n\r\n## Installation\r\n\r\n```\r\npip install gprob\r\n```\r\n\r\n## Acknowledgements\r\ngprob was inspired by [GaussianInfer](https://github.com/damast93/GaussianInfer), an accompaniment for the paper\r\n\r\nD. Stein and S. Staton, \"Compositional Semantics for Probabilistic Programs with Exact Conditioning,\" 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), Rome, Italy, 2021, pp. 1-13, doi: 10.1109/LICS52264.2021.9470552\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Sergey A. Fedorov  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": "Probabilistic programming with arrays of Gaussian variables.",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "gaussian distribution",
        " noise",
        " random variables",
        " stochastic processes",
        " gaussian processes",
        " probabilistic programming",
        " python",
        " numpy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "610814e8bcff9faf2f40af6a8cd9374eaec56b4fdc9777e741d878dec0bea8e7",
                "md5": "588e5d94375e10286181b8f31c247bb8",
                "sha256": "683aa24be500c1b226ed0e10ca4606a657efc5baa3f9528d272cb3e2ec6ccd55"
            },
            "downloads": -1,
            "filename": "gprob-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "588e5d94375e10286181b8f31c247bb8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7807,
            "upload_time": "2024-09-15T17:56:21",
            "upload_time_iso_8601": "2024-09-15T17:56:21.853894Z",
            "url": "https://files.pythonhosted.org/packages/61/08/14e8bcff9faf2f40af6a8cd9374eaec56b4fdc9777e741d878dec0bea8e7/gprob-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e4926dc2fdfe778edf0c6ff21c4f9bbc6ff0e003c960074c85b027eca2bd27a",
                "md5": "84dfd7e94313b8d28b89af9d4c1397ca",
                "sha256": "5c46f0a988a9c4cb2da93ff8a80bf85824bfdf2d24a1cf8a8b5e6c45a5d0e919"
            },
            "downloads": -1,
            "filename": "gprob-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "84dfd7e94313b8d28b89af9d4c1397ca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7034,
            "upload_time": "2024-09-15T17:56:23",
            "upload_time_iso_8601": "2024-09-15T17:56:23.391764Z",
            "url": "https://files.pythonhosted.org/packages/3e/49/26dc2fdfe778edf0c6ff21c4f9bbc6ff0e003c960074c85b027eca2bd27a/gprob-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-15 17:56:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gprob"
}
        
Elapsed time: 2.70732s