In [26]:
ls


ALGENCAN.out  Data.ipynb  dump_robust.txt  PLIdentify.py  PLIdentify.pyc  SLSQP.out

In [27]:
import cPickle as pk

In [28]:
data = pk.load(open('./dump_robust.txt', 'r'))

In [29]:
print data.keys()


['em', 'winT', 'select_model', 'entropy', 'threshold', 'I_rec', 'ref_pool', 'desc']

In [30]:
I_rec = data['I_rec']

In [31]:
len(I_rec)


Out[31]:
601

We are using this to test it


In [33]:
D = zip(*I_rec)
print len(D)
print len(D[0])


8
601

In [34]:
from PLIdentify import PL_identify

In [35]:
PL_identify(D, 0.1, D,)


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/home/wangjing/Dropbox/Research/CyberSecurity/Robust_Method/PaperSimulation/PLIdentify/<ipython-input-35-64c4108ef899> in <module>()
----> 1 PL_identify(D, 0.1, D,)

TypeError: PL_identify() takes exactly 4 arguments (3 given)

In [ ]: