Hi,
I'm trying to use the chooseK.py algorithm. I have alredy runned the structure.py with K ranged from 2 to 10. Then, when I run chooseK the result is:
File "/home/olivia/fastStructure-master/chooseK.py", line 111, in <module>
print "Model complexity that maximizes marginal likelihood = %d"%Ks[np.argmax(marginal_likelihoods)]
File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 1103, in argmax
return _wrapfunc(a, 'argmax', axis=axis, out=out)
File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 66, in _wrapfunc
return _wrapit(obj, method, *args, **kwds)
File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 46, in _wrapit
result = getattr(asarray(obj), method)(*args, **kwds)
ValueError: attempt to get argmax of an empty sequence
If you could help me, I don't know how to fix this error.
Thank you in advance,
Olivia