pip install "arviz[all]"
接着安装pymc, 结果出现了错误信息,检查发现可能是Pyhton的版本过高,因此全部删除,重新建立虚拟环境,这一次安装的Python版本是3.10.13,为了避免之前出现的错误,首先安装了PyMC,没有出现错误,接着安装Arviz,发现Arviz已经安装,这意味着PyMC包括了Arviz。
PyMC的安装版本为5.10.4,Arviz的安装版本为0.17.0,额外安装了两个库:bambi和seaborn【使用通用句子编码器USE(Universal Sentence Encoder)进行语义查询】。作了一个线性回归测试(brm.py),显示pymc和arviz能够正常工作。
import bambi as bmb
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pymc as pm
import seaborn as sns
import arviz as az
3. 参考
[1] (2009) Bayesian Probabilistic Approach for the Correlations of Compression Index for Marine Clays.
[2] (2013) Bayesian Approach for Probabilistic Site Characterization Using Cone Penetration Tests.
[3] (2014) Characterizing uniaxial compressive strength using Bayesian updating.
[4] (2015) Bayesian analysis for learning and updating geotechnical parameters and models with measurements.
[5] (2017) Bayesian prediction of TBM penetration rate in rock mass.
[6] (2018) Evaluating the effect on seismicity of a hydraulic fracturing trial using Bayesian data analysis.
[7] (2018) Probabilistic Analysis of Tunnel Face Stability below River Using Bayesian Framework.
[8] (2018) Hierarchical Bayesian modelling of geotechnical data: application to rock strength.
[9] (2018) Bayesian Inference of Geotechnical Parameters for Slope Reliability Analysis.
[10] (2019) Reliability-based design in rock engineering: Application of Bayesian regression methods to rock strength data.
[11] (2019) Applying Bayesian Models to Forecast Rock Mass Modulus.
[12] (2019) Bayesian methods to treat geotechnical uncertainty in risk-based design of open pit slopes.
[13] (2019) Bayesian analysis of the impact of rainfall data product on simulated slope failure for North Carolina locations.
[14] (2020) Probabilistic analysis of tunnel collapse: Bayesian method for detecting change points.
[15] (2020) Slope Stability Analysis Using Bayesian Markov Chain Monte Carlo Method.
[16] (2020) Enhancing Empirical Relations for Estimating Uniaxial Compressive Strength by Means of Bayesian Hierarchical Regression.
[17] (2020) BayesIan analysis for uncertainty quantification of in situ stress data.