Integrations
Uses FastAPI to expose the Bayesian MCP server API endpoints for model creation, belief updating, prediction generation, model comparison, and visualization.
Provides installation instructions for cloning the repository from GitHub to set up the Bayesian MCP server.
Utilizes NumPy for numerical computations in Bayesian inference, handling arrays and mathematical operations for probabilistic models.
贝叶斯 MCP
用于贝叶斯推理、推断和信念更新的模型调用协议 (MCP) 服务器。该工具使法学硕士 (LLM) 能够执行严格的贝叶斯分析和概率推理。
特征
- 🧠贝叶斯推理:使用 MCMC 抽样,利用新证据更新信念
- 📊模型比较:使用信息标准比较竞争模型
- 🔮预测推理:通过不确定性量化生成预测
- 📈可视化:创建后验分布的可视化
- 🔌 MCP 集成:与任何支持 MCP 的 LLM 无缝集成
安装
开发安装
克隆存储库并安装依赖项:
要求
- Python 3.9+
- PyMC 5.0+
- 阿维兹
- NumPy
- Matplotlib
- 快速API
- 优维康
快速入门
启动服务器
服务器将启动并监听指定主机和端口上的 MCP 请求。
API 使用
贝叶斯 MCP 服务器通过其 API 公开了几个功能:
1.创建模型
使用指定的变量创建一个新的贝叶斯模型。
2.更新信念
用新证据更新模型信念。
3. 做出预测
使用后验分布生成预测。
4. 比较模型
使用信息标准比较多个模型。
5.创建可视化
生成模型后验分布的可视化。
示例
examples/
目录包含几个示例,演示如何使用贝叶斯 MCP 服务器:
线性回归
一个简单的线性回归示例来演示参数估计:
A/B 测试
贝叶斯 A/B 测试转化率的示例:
支持的发行版
贝叶斯引擎支持以下分布:
normal
:正态(高斯)分布lognormal
:对数正态分布beta
:Beta 分布gamma
:伽马分布exponential
:指数分布uniform
:均匀分布bernoulli
:伯努利分布binomial
:二项分布poisson
:泊松分布deterministic
:确定性变换
MCP 集成
此服务器实现了模型调用协议 (MCP),使其与各种 LLM 和框架兼容。要将其与您的 LLM 一起使用:
执照
麻省理工学院
致谢
基于 Wrench AI 框架的概念和代码。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to analyze options chains, calculate Greeks, and evaluate basic options strategies through Yahoo Finance data.Last updated -4PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides basic mathematical and statistical functions to LLMs, enabling them to perform accurate numerical calculations through a simple API.Last updated -132TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables LLMs to perform precise numerical calculations by evaluating mathematical expressions.Last updated -148PythonMIT License
- -securityFlicense-qualityEnables LLMs to perform statistical analysis and generate ML predictions on user data from databases or CSV files through a Model Context Protocol server.Last updated -Python