cvxgrp / GGS

Greedy Gaussian Segmentation
BSD 2-Clause "Simplified" License
96 stars 34 forks source link

Getting error while trying the cross validation #1

Closed NatnaelT closed 6 years ago

NatnaelT commented 6 years ago

Thank you so much for this interesting tool & important paper. I was using the GGS for the purpose of unsupervised clustering of multivatite time-series data. Everything is working perfect, except the cross-validation (I guess I have a problem with the multiprocessg.poll); I am getting the following error:

_File "~/anaconda/envs/python27/lib/python2.7/multiprocessing/pool.py", line 572, in get raise self.value TypeError: 'int' object has no attribute 'getitem'

I appreciate if you can help.

Thank you

davidhallac commented 6 years ago

Hi,

What type of setup are you running GGS on? Are you by chance using Windows?

NatnaelT commented 6 years ago

Hi, Thanks for the prompt reply. I am working on Mac

davidhallac commented 6 years ago

Yes, you are right. The Cross-Validation code was missing a transpose in line 270 of ggs.py. It should work now, but let me know if you find any other errors - thanks for pointing it out!

NatnaelT commented 6 years ago

Great! Now it works. Thank you for your quick action.