Comments (2)
pc 算法是个基于统计的方法,不存在训练这个步骤。它是直接在你想预测的数据上算条件独立性之类的东西,然后删边建图,最后剩下的有向图就是你想要的预测结果。
我觉得这篇论文把 pc 算法的流程讲得挺清楚的:https://www.jmlr.org/papers/volume8/kalisch07a/kalisch07a.pdf
from pcalg-py.
等等我突然意识到你的意思可能是拿贝叶斯网络做分类器该怎么预测...
贝叶斯网络可以理解为由一个有向无环图(结构,表示变量之间的依赖关系)和一个条件概率表(参数,表示变量之间的依赖程度)组成,所以要建完整的贝叶斯网络需要结构学习和参数学习。而 pc 算法只是结构学习,只能学出那个有向无环图(结构)。要预测的话还需要进行参数学习,把模型的参数学出来之后才能做预测。
贝叶斯网络的参数学习可以看看邱锡鹏老师那本《神经网络与深度学习》里概率图模型那一章:https://github.com/nndl/nndl.github.io
from pcalg-py.
Related Issues (4)
- 可以讲解一下输入格式吗? HOT 1
- 关于test.csv数据集的疑问 HOT 1
- 运行PC算法后,仍有双向边和无向边,这是合理的吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcalg-py.