---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-78-e03a14294301> in <module>()
1 for k in range(1,101):
2 sys.stderr.write('Class %d ==> '%k)
----> 3 combKNN(k)
4 sys.stderr.write('\tFinished!!\n')
<ipython-input-77-8652fec290aa> in combKNN(ic, thresh)
5 df = pandas.read_table('../results/lower/'+f, sep=' ', header=None)
6 for i in range(df.shape[0]):
----> 7 if np.any(ic == df.iloc[i,:]):
8 s = np.sum(ic == df.iloc[i,:])
9 if i in mydict:
/usr/local/lib/python2.7/dist-packages/pandas/core/ops.pyc in wrapper(self, other)
611
612 res = pd.Series(res, index=self.index, name=self.name,
--> 613 dtype='bool')
614
615 # mask out the invalids
/usr/local/lib/python2.7/dist-packages/pandas/core/series.pyc in __init__(self, data, index, dtype, name, copy, fastpath)
214 else:
215 data = _sanitize_array(data, index, dtype, copy,
--> 216 raise_cast_failure=True)
217
218 data = SingleBlockManager(data, index, fastpath=True)
/usr/local/lib/python2.7/dist-packages/pandas/core/series.pyc in _sanitize_array(data, index, dtype, copy, raise_cast_failure)
2606 # GH #846
2607 if isinstance(data, (np.ndarray, Index, Series)):
-> 2608 subarr = np.array(data, copy=False)
2609 if dtype is not None:
2610
KeyboardInterrupt: