hbayesdm的python接口,rl-dm任务的分层贝叶斯建模
hbayesdm的Python项目详细描述
这是python版本的hbayesdm(分层贝叶斯建模 决策任务),一个用户友好的包,提供层次结构 一个数组上各种计算模型的贝叶斯分析 决策任务。hbayesdm在python中使用PyStan(python接口 Stan)用于贝叶斯推理。
它支持Python3.5或更高版本,需要几个包,包括: NumPy、SciPy、Pandas、PyStan、Matplotlib和ArviZ。
安装
您可以使用以下行从pypi安装hbayesdm:
pip install hbayesdm # Install using pip
如果要从源安装(通过从github克隆):
git clone https://github.com/CCS-Lab/hBayesDM.git cd hBayesDM cd Python python setup.py install # Install from source
引文
如果您使用hbayesdm或其一些代码进行研究,请引用this paper:
@article{hBayesDM,title={Revealing Neurocomputational Mechanisms of Reinforcement Learning and Decision-Making With the {hBayesDM} Package},author={Ahn, Woo-Young and Haines, Nathaniel and Zhang, Lei},journal={Computational Psychiatry},year={2017},volume={1},pages={24--57},publisher={MIT Press},url={doi:10.1162/CPSY_a_00002},}