-
Notifications
You must be signed in to change notification settings - Fork 12
/
script_rcv2.m
45 lines (35 loc) · 1.24 KB
/
script_rcv2.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Deep Poisson Factor Analysis
% The Matlab Code for the ICML 2015 paper
% "Scalable Deep Poisson Factor Analysis for Topic Modeling"
% Code written by: Zhe Gan (zhe.gan@duke.edu), Changyou Chen (cchangyou@gmail.com),
% Ricardo Henao (ricardo.henao@duke.edu), David Carlson (david.carlson@duke.edu),
% Duke University, ECE department.
% License
% Please note that this code should be used at your own risk.
% There is no implied guarantee that it will
% not do anything stupid. Permission is granted to use and modify the code.
% Citing DPFA
% Please cite our ICML paper in your publications if it helps your research:
%
% @inproceedings{Gan15dpfa,
% Author = {Z. Gan, C. Chen, R. Henao, D. Carlson, and L. Carin},
% Title = {Scalable Deep Poisson Factor Analysis for Topic Modeling},
% booktitle={ICML},
% Year = {2015}
% }
addpath(genpath('.'));
%% inference method 1: SGNHT
% (1) model: DPFA using SBN
rcv2_dpfa_sbn_sgnht;
% (2) model: DPFA using RBM
rcv2_dpfa_rbm_sgnht;
%% inference method 2: BCDF
rcv2_lda_bcdf; % lda
rcv2_pfa_bcdf; % pfa
rcv2_pfa_sbn_bcdf; % pfa + sbn
rcv2_pfa_dsbn_bcdf; % pfa + dsbn
%% RSM: Replicated Softmax
rcv2_rsm_sgd;
%% nHDP
% the code can be downloaded from John Paisley's homepage
rcv2_nHDP;