bnlearn

用於因果發現的Python套件,透過學習貝氏網路的圖形結構。結構學習、參數學習、推論、抽樣方法。

bnlearn 是什麼?

用於因果發現的Python套件,透過學習貝氏網路的圖形結構。結構學習、參數學習、推論、抽樣方法。

bnlearn 概覽

這是什麼

bnlearn 是一個 Python 套件,用於透過學習貝氏網路的圖形結構來進行因果發現。它提供結構學習、參數學習、推論與取樣方法的流程。

主要功能

  • 從資料或專家知識進行結構學習
  • 參數學習以估計條件機率分佈
  • 因果推論,用於介入性與反事實分佈
  • 使用貝氏取樣生成合成資料
  • 將連續資料集離散化以進行貝氏網路建模
  • 支援離散、連續與混合資料集
  • 比較因果發現函式庫,並以大型語言模型對比貝氏方法進行基準測試

使用情境

bnlearn 可用於因果發現、進行因果預測、探索介入、計算邊緣強度、填補缺失資料,以及比較網路結構。它適合從事貝氏網路與因果建模的研究人員與實務工作者。

快速開始

需要 Python 3.10 或更新版本。使用 pip 安裝:pip install bnlearn使用 uv 安裝:uv venv.venv/Scripts/activateuv pip install bnlearn從 GitHub 原始碼安裝:pip install git+https://github.com/erdogant/bnlearn安裝後匯入函式庫:import bnlearn as bn

授權與價格

提供的元資料或 README 中未說明授權條款。

內容整理自該專案公開的 README 與儲存庫資訊。

將此徽章加入你的 README

Featured on YunoDB 徽章樣式與說明

你是這個專案的維護者嗎?展示它已收錄於 YunoDB。

Markdown[![Featured on YunoDB](https://yunodb.com/badge/erdogantbnlearn.svg)](https://yunodb.com/tools/erdogantbnlearn?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/erdogantbnlearn?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/erdogantbnlearn.svg" alt="Featured on YunoDB" height="20"></a>