• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

widdowquinn/Teaching-Stan-Hierarchical-Modelling: Jupyter notebooks for teaching ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

widdowquinn/Teaching-Stan-Hierarchical-Modelling

开源软件地址:

https://github.com/widdowquinn/Teaching-Stan-Hierarchical-Modelling

开源编程语言:

HTML 69.7%

开源软件介绍:

README.md Teaching-Stan-Hierarchical-Modelling

Introduction

This set of notebooks works through an example of hierarchical (also known as multilevel) Bayesian modelling using the pystan Python module. It is derived from Chris Fonnesbeck's introduction to Bayesian multilevel modelling using Stan:

Radon Problem Description Plot of Radon by Floor and County Plot of Radon by County

Reading/Using the Notebooks

These notebooks can be read through online as webpages (follow the links below in Notebooks), or downloaded and used interactively as Jupyter notebooks, where you can explore and experiment with the models in your web browser, using Python.

# License Information

Chris Fonnesbeck's material is licensed under the following licenses:

Both licences grant permission to reproduce and prepare derivative works, and these licenses should be considered also to apply to the work in this repository.

Reporting Issues

I will have made mistakes. If you spot any, or would otherwise like to make improvements, I would be grateful if you could please take one of the following actions:

  • Raise the issue at the GitHub issues page for this repository.
  • Fork the repository, make the required changes, and then issue a pull request.
# Notebooks
  1. Introduction
  2. Data Import
  3. Bias/Variance Tradeoff
  4. A Pooled Model
  5. An Unpooled Model
  6. Pooled vs Unpooled Models
  7. Partial Pooling - An Introduction
  8. Partial Pooling - Varying Intercept
  9. Partial Pooling - Varying Slope
  10. Partial Pooling - Varying Intercept and Slope
  11. Group-level Predictors
  12. Contextual Effects
  13. Prediction

Getting Started with Interactive Notebooks

## 1. Get the notebooks

Clone the notebooks from GitHub with:

git clone [email protected]:widdowquinn/Teaching-Stan-Hierarchical-Modelling.git

Then change into the repository directory:

cd Teaching-Stan-Hierarchical-Modelling/

2. Create a virtualenv to run the notebooks

Using virtualenv we create a standalone Python virtual environment with the appropriate libraries installed. This will not interfere with system Python or any other Python instances available on your machine.

First, create the virtual environment:

virtualenv -p python3.6 venv-stan

Next, activate the virtual environment:

source venv-stan/bin/activate

Then, install the required packages:

pip install -r requirements.txt

Finally, install Jupyter:

pip install jupyter

## 3. Starting the notebooks

To start Jupyter, issue the following at the command line:

jupyter notebook

This should bring up a view on the current directory in your browser. Click on any of the .ipynb notebook files to start them running in your browser - the index.ipynb page is a good place to start.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap