andrewcron / dpmix

Python library for fitting massive mixture models using DP priors and GPU computation.
www.stat.duke.edu/gpustatsci/
23 stars 7 forks source link

Error in test_hdp_callable #3

Open borishejblum opened 6 years ago

borishejblum commented 6 years ago

Hi,

After installing dpmix (with some difficulties), I cannot get the test_hdp_callable.py to run properly. I get the following error :

File "/usr/local/lib/python2.7/site-packages/dpmix/hdp.py", line 182, in init self.alldata[int(self.cumobs[i]):int(self.cumobs[i+1]),:] = self.data[i].copy() TypeError: slice indices must be integers or None or have an index method

Do you have any idea why this might be happening ?

Thanks for your help, Boris

qiaoyifan commented 2 years ago

Hi, I failed to install dpmix with an error "src/sampler_utils.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation" when the command "python setup.py install", the cython version of mine if 0.20 with ubuntu system.

Thanks for your help, Yifan

borishejblum commented 2 years ago

Hi @qiaoyifan, perhaps try the fork from @whitews instead: https://github.com/whitews/dpmix Good luck

qiaoyifan commented 2 years ago

Thanks, but i also met the error "src/sampler_utils.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.

error Do not use this file, it is the result of a failed Cython compilation.". Anyway, thank you very much.