Coder Social home page Coder Social logo

预测 about pcalg-py HOT 2 CLOSED

renovamen avatar renovamen commented on August 28, 2024
预测

from pcalg-py.

Comments (2)

Renovamen avatar Renovamen commented on August 28, 2024

pc 算法是个基于统计的方法,不存在训练这个步骤。它是直接在你想预测的数据上算条件独立性之类的东西,然后删边建图,最后剩下的有向图就是你想要的预测结果。

我觉得这篇论文把 pc 算法的流程讲得挺清楚的:https://www.jmlr.org/papers/volume8/kalisch07a/kalisch07a.pdf

from pcalg-py.

Renovamen avatar Renovamen commented on August 28, 2024

等等我突然意识到你的意思可能是拿贝叶斯网络做分类器该怎么预测...

贝叶斯网络可以理解为由一个有向无环图(结构,表示变量之间的依赖关系)和一个条件概率表(参数,表示变量之间的依赖程度)组成,所以要建完整的贝叶斯网络需要结构学习和参数学习。而 pc 算法只是结构学习,只能学出那个有向无环图(结构)。要预测的话还需要进行参数学习,把模型的参数学出来之后才能做预测。

贝叶斯网络的参数学习可以看看邱锡鹏老师那本《神经网络与深度学习》里概率图模型那一章:https://github.com/nndl/nndl.github.io

from pcalg-py.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.