Code Monkey home page Code Monkey logo

mixed-membership-stochastic-blockmodel's Introduction

Mixed Membership Stochastic Blockmodel

Background

This is an implementation of the 2008 paper by Airoldi et al describing a model with context dependent pairwise cluster memberships. This project contains three methods of running inference to obtain the parameters pi and B, where pi is the person's block membership vector, and B is the inter-block relationship matrix.

The first method is simple MAP estimation, using Powell's derivative free function maximizer. The second is slow but accurate MCMC, using an adaptive Metropolis-Hasting algorithm using the awesome Python library PyMC. And the third is a fast deterministic approximation algorithm using variational message passing, built from Microsoft Research's great Infer.NET package.

The dataset is generated by MATLAB as is seen in /data. The MAP and MCMC are written in Python. The variational inference is from Infer.NET which is C#.

License

This software is released under the MIT license.

The MCMC portion of this software relies on PyMC (freely available under the Academic Free License). Please refer to the PyMC license for details.

The variational inference portion of this software relies on Infer.NET (freely available for non-commercial use) which is not included in our software. Even though the license of this software is permissive, Infer.NET's license is not. Please refer to its license for details.

Contributors

Alex Burnap, Efren Cruz, Xin Rong, Brian Segal

mixed-membership-stochastic-blockmodel's People

Contributors

aburnap avatar

Watchers

Adrien D. avatar  avatar

Forkers

aniketgurav

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.