Coder Social home page Coder Social logo

mc2's Introduction

Expected Prediction and Moments for Probabilistic Circuits

Repository for python implementation and experiments for the paper "On Tractable Computation of Expected Predictions, NeurIPS 2019".

Note:

For a faster and well tested and documented implementation of the algorithms in this paper checkout the Juice package ProbabilisticCircuits.jl. Also have GPU support there, so could orders of magnitude faster. This repository is only for reproducing the paper results and not maintained anymore.

Repository Structure

  • circuit_expect.py includes the implementation of the algorithm for computing expectation and moments for pair of probabilistic circuits. This implementation uses pypsdd and LogisticCircuit libraries for learning and representing the circuits.

  • The ./pypsdd folder includes a copy of the pypsdd library with some modifications to make it compatible with Python 3.

  • The ./LogisticCircuit library includes a copy of the LogisticCircuit library with some additions and modifications to also enable RegressionCircuits.

  • The folder ./scripts include some pyhton scripts to help running the experiments, they range from preprocessing data, learning circuits (psdd, logistic circuit, regression circuit), parallelizing experiments, etc. Additionally, ./scripts/cmd_examples constains some command ling examples of how to use the scripts.

  • The folder ./data includes the datasets used for the experiments.

  • The folder ./exp includes results such as the learned circuits, and raw results from "missing data experiments".

mc2's People

Contributors

khosravipasha avatar

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.