markovmodel / PyEMMA

🚂 Python API for Emma's Markov Model Algorithms 🚂
http://pyemma.org
GNU Lesser General Public License v3.0
311 stars 119 forks source link

Estimation and validation #1500

Closed andresilvapimentel closed 3 years ago

andresilvapimentel commented 3 years ago

My code has an error in the following command:

for k, ax in enumerate(ax_ck): lest, lpred = _add_ck_subplot(cktest, test_index, ax, k, k, ipos=cktest.nsets - 1, dt=0.1, units='ns', linewidth=0.7) if k > 0: ax.set_yticks([])

The error message is: NameError Traceback (most recent call last)

in () 23 24 for k, ax in enumerate(ax_ck): ---> 25 lest, lpred = _add_ck_subplot(cktest, test_index, ax, k, k, ipos=cktest.nsets - 1, dt=0.1, units='ns', linewidth=0.7) 26 if k > 0: 27 ax.set_yticks([]) NameError: name 'test_index' is not defined Could you help me, please? What is the test_index?
clonker commented 3 years ago

Hi, could you let us know which PyEMMA version you are working with? And perhaps update to the latest one?

thempel commented 3 years ago

Setting test_index = 0 should do the trick

andresilvapimentel commented 3 years ago

Thanks. It works now!!!