online-hdp icon indicating copy to clipboard operation
online-hdp copied to clipboard

what inputs are needed for the corpus_name,data_path and test_data_path?

Open Sunnie95 opened this issue 7 years ago • 1 comments

when I run python run_online_hdp.py ,I got such error: File "run_online_hdp.py", line 261, in run_online_hdp() File "run_online_hdp.py", line 88, in run_online_hdp train_filenames = glob(options.data_path) File "/usr/lib/python2.7/glob.py", line 27, in glob return list(iglob(pathname)) File "/usr/lib/python2.7/glob.py", line 38, in iglob dirname, basename = os.path.split(pathname) File "/usr/lib/python2.7/posixpath.py", line 85, in split i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'

I find that it is because I didn't have the correct 'corpus_name','data_path' and ‘test_data_path’ in the following function, parser.set_defaults(T=300, K=20, D=-1, W=-1, eta=0.01, alpha=1.0, gamma=1.0, kappa=0.5, tau=1.0, batchsize=100, max_time=-1, max_iter=-1, var_converge=0.0001, random_seed=999931111, corpus_name=None, data_path=None, test_data_path=None, test_data_path_in_folds=None, directory=None, save_lag=500, pass_ratio=0.5, new_init=False, scale=1.0, adding_noise=False, seq_mode=False, fixed_lag=False) so what inputs are needed to make it run? thanks a lot.

Sunnie95 avatar Nov 07 '17 07:11 Sunnie95

You need to input the data_path(train data path), directory(the result directory, default None), D and W(if you don't input them, it will raise error.)

Abigale001 avatar Jul 12 '18 01:07 Abigale001