├── mxnet ├── pymc4_mx │ └── __init__.py └── setup.py ├── pytorch ├── pymc4_torch │ └── __init__.py └── setup.py ├── tensorflow ├── pymc4_tf │ └── __init__.py └── setup.py ├── requirements.txt ├── README.md ├── .gitignore └── LICENSE /mxnet/pymc4_mx/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pytorch/pymc4_torch/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tensorflow/pymc4_tf/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | tensorflow 2 | mxnet 3 | pytorch 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pymc4_prototypes 2 | Experimental code for porting PyMC to alternative backends 3 | -------------------------------------------------------------------------------- /pytorch/setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | 3 | if __name__ == '__main__': 4 | setuptools.setup( 5 | name='pymc4_torch', 6 | version='4.0.0', 7 | packages=setuptools.find_packages(), 8 | description='PyMC4 pytorch', 9 | author='PyMC team', 10 | tests_require=['pytest', 'pytest-cov'] 11 | ) 12 | 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.sw[op] 3 | examples/*.png 4 | build/* 5 | dist/* 6 | *.egg-info/ 7 | .ipynb_checkpoints 8 | tmtags 9 | tags 10 | .DS_Store 11 | .cache 12 | # IntelliJ IDE 13 | .idea 14 | *.iml 15 | 16 | # Sphinx 17 | _build 18 | 19 | # Merge tool 20 | *.orig 21 | 22 | # Test artifacts 23 | mcmc.sqlite 24 | 25 | # Docker development 26 | # notebooks/ 27 | -------------------------------------------------------------------------------- /mxnet/setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | 3 | if __name__ == '__main__': 4 | setuptools.setup( 5 | name='pymc4_mx', 6 | version='4.0.0', 7 | packages=setuptools.find_packages(), 8 | description='PyMC4 mxnet', 9 | author='PyMC team', 10 | install_requires=['mxnet'], 11 | tests_require=['pytest', 'pytest-cov'] 12 | ) 13 | -------------------------------------------------------------------------------- /tensorflow/setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | 3 | if __name__ == '__main__': 4 | setuptools.setup( 5 | name='pymc4_tf', 6 | version='4.0.0', 7 | packages=setuptools.find_packages(), 8 | description='PyMC4 tensorflow', 9 | author='PyMC team', 10 | install_requires=['tensorflow'], 11 | tests_require=['pytest', 'pytest-cov'] 12 | ) 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 PyMC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------