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以降
- アルヴィズ
- ナンパイ
- Matplotlib
- ファストAPI
- ウビコーン
クイックスタート
サーバーの起動
サーバーは起動し、指定されたホストとポートで MCP 要求をリッスンします。
APIの使用
Bayesian MCP サーバーは、API を通じていくつかの機能を公開します。
1. モデルを作成する
指定された変数を使用して新しいベイズ モデルを作成します。
2. 信念を更新する
新しい証拠に基づいてモデルの信念を更新します。
3. 予測する
事後分布を使用して予測を生成します。
4. モデルを比較する
情報基準を使用して複数のモデルを比較します。
5. 視覚化を作成する
モデルの事後分布の視覚化を生成します。
例
examples/
ディレクトリには、Bayesian MCP サーバーの使用方法を示すいくつかの例が含まれています。
線形回帰
パラメータ推定を示す単純な線形回帰の例:
A/Bテスト
コンバージョン率のベイジアン A/B テストの例:
サポートされているディストリビューション
ベイジアン エンジンは次の分布をサポートします。
normal
: 正規(ガウス)分布lognormal
:対数正規分布beta
:ベータ分布gamma
:ガンマ分布exponential
:指数分布uniform
:均一分布bernoulli
:ベルヌーイ分布binomial
:二項分布poisson
:ポアソン分布deterministic
:決定論的変換
MCP統合
このサーバーはモデル呼び出しプロトコルを実装しており、幅広いLLMおよびフレームワークと互換性があります。LLMで使用するには、以下の手順に従ってください。
ライセンス
マサチューセッツ工科大学
クレジット
Wrench AI フレームワークの概念とコードに基づいています。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
LLM が推論、モデル比較、不確実性定量化による予測モデリングなどの厳密なベイズ分析と確率的推論を実行できるようにするモデル呼び出しプロトコル サーバー。
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