When running the pgmult/experiments/ctm.py, I find the LDA Gibbs is unable to run with the following errors. All CTMs run succeefully but I am not sure why there are two legends for SB CTM Gibbs and LN CTM Gibbs.
_File "", line 1, in
runfile('/home/yfeng14/STAT645/project_2/test-ctm.py', wdir='/home/yfeng14/STAT645/project_2')
File "/home/yfeng14/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 866, in runfile
execfile(filename, namespace)
File "/home/yfeng14/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 94, in execfile
builtins.execfile(filename, *where)
File "/home/yfeng14/STAT645/project_2/test-ctm.py", line 448, in
lda_results = fit_lda_collapsed(train_data, test_data, T, 100, True, alpha_beta, alpha_theta)
File "/home/yfeng14/STAT645/project_2/test-ctm.py", line 279, in fit
model = initializer(model) if init_at_em and initializer else model
File "/home/yfeng14/STAT645/project_2/test-ctm.py", line 316, in lda_initializer
model.beta = np.exp(np.loadtxt('ctm-out/000-log-beta.dat')
File "/home/yfeng14/anaconda2/lib/python2.7/site-packages/numpy/lib/npyio.py", line 803, in loadtxt
fh = iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: 'ctm-out/000-log-beta.dat'_
When running the pgmult/experiments/ctm.py, I find the LDA Gibbs is unable to run with the following errors. All CTMs run succeefully but I am not sure why there are two legends for SB CTM Gibbs and LN CTM Gibbs.
_File "", line 1, in
runfile('/home/yfeng14/STAT645/project_2/test-ctm.py', wdir='/home/yfeng14/STAT645/project_2')
File "/home/yfeng14/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 866, in runfile execfile(filename, namespace)
File "/home/yfeng14/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 94, in execfile builtins.execfile(filename, *where)
File "/home/yfeng14/STAT645/project_2/test-ctm.py", line 448, in
lda_results = fit_lda_collapsed(train_data, test_data, T, 100, True, alpha_beta, alpha_theta)
File "/home/yfeng14/STAT645/project_2/test-ctm.py", line 279, in fit model = initializer(model) if init_at_em and initializer else model
File "/home/yfeng14/STAT645/project_2/test-ctm.py", line 316, in lda_initializer model.beta = np.exp(np.loadtxt('ctm-out/000-log-beta.dat')
File "/home/yfeng14/anaconda2/lib/python2.7/site-packages/numpy/lib/npyio.py", line 803, in loadtxt fh = iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: 'ctm-out/000-log-beta.dat'_