Giter Site home page Giter Site logo

bmls's Introduction

BMLS

Demo code of BMLS in the paper of "Bayesian multi-label learning with sparse features and labels, and label co-occurrences", Artificial Intelligence and Statistics (AISTATS) 2018. Paper

Run BMLS

  1. The code is a mixture of Matlab and C++. The code has been tested in MacOS and Linux (Ubuntu). To run it on Windows, you need to re-compile all the .c files with MEX and a C++ complier.

  2. Requirements: Matlab 2016b (or later).

  3. We have offered the Bibtex dataset used in the paper, which is downloaded from The Extreme Classification Repository and stored in MAT format:

bibtex.mat contains:

  • X_tr and X_te: N by D feature (sparse and binary) matrix for N instances with D features for training and testing, respectively.
  • Y_tr and Y_te: N by L label (sparse and binary) matrix for N instances with L labels for training and testing, respectively.

bibtex_missing_label.mat contains:

  • Y_tr: N by L label (sparse and binary) matrix for N instances with L labels for training, where we randomly removed 80% entries from the label matrix.

bibtex_missing_instance.mat contains:

  • X_tr: N by D feature (sparse and binary) matrix for N instances with D features for training, where we reduced the size of training instances to 20%.
  • Y_tr: N by L label (sparse and binary) matrix for N instances with L labels for training, where we reduced the size of training instances to 20%.

Please prepare your own datasets in the above format. If you want to use the bibtex dataset, please cite the original papers, which are cited in our paper.

  1. Run the demos:

-demo.m: run the original version of BMLS on bibtex.

-demo_missing_label.m: run BMLS with label co-occurrences in the case with missing labels.

-demo_missing_instance.m: run BMLS with label co-occurrences in the case with fewer traning instances.

Notes

  1. CRT_sum_mex.c, Multrnd_Matrix_mex_fast.c and Multrnd_mijk.c, truncated_Poisson_rnd.m are borrowed from NBP_PFA and EPM, respectively, of Mingyuan Zhou. If you want to use the above code please cite the related papers.

  2. The code has no support but if you find any bugs, please contact me by email ([email protected]).

bmls's People

Contributors

ethanhezhao avatar

Stargazers

 avatar

Watchers

 avatar  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.