Giter VIP home page Giter VIP logo

ibp4ilfm's Introduction

Infinite Latent Feature Models and the Indian Buffet Process

(Project for STA663)

Author:

  • Bo Liu
  • Linlin Li

This repository includes a module IBP which helps make inference on infinite latent feature models using the Indian Buffet Process. The algorithm was proposed by Thomas L. Griffiths and Zoubin Ghahramani. More information on this package can be referenced in paper/FinalReport.pdf.

Test

Two test files on calculating log conditional probability and sample K_plus are provided in test/test_lp.py and test/recursion.py. Both python files include functions for test. These functions can be explicitly called individually, or the file can be directly run via terminal.

foo@bar:IBP4ILFM/test foo$ python test_lp -N 100 -D 100 -K 10 -T 100 [--sigma_X=1 --sigma_A=1]
foo@bar:IBP4ILFM/test foo$ python test_recursion -N 100 -D 100 -K 10 -C 10 -T 100
  • N, D: Dimension of input array;
  • K: Number of latent features;
  • T: Number of repetitions;
  • C: Maximum number of K_plus;
  • sigma_X, sigma_A: [optional, random value in (0,1) if undefined] Standard deviation for prior normal distribution.

Example

Two examples are provided under example/ folder. These are in .ipynb (notebook) format so as to show various plots with ease. The notebooks were created in vscode 2019 and can be opened in IDEs with .ipynb supports. A web-based IDE for python notebook is Google Colaboratory.

Info

  • Version: 0.1a
  • Python requirement: >=3.6
  • Apr 30, 2020

Reference

Ghahramani, Z., & Griffiths, T. L. (2006). Infinite latent feature models and the Indian buffet process. In Advances in neural information processing systems (pp. 475-482).

License

GNU GENERAL PUBLIC LICENSE Version 3

ibp4ilfm's People

Contributors

linlin-li-1 avatar

Stargazers

Qiuyi Huang avatar Da Gong  avatar

Watchers

James Cloos avatar  avatar

Forkers

neytjieb1

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.