-
-
Notifications
You must be signed in to change notification settings - Fork 89
Description
AttributeError Traceback (most recent call last)
in
1 knn = iris_knn()
----> 2 knn.fit()
3 knn.announce()
in fit(self, k)
22 for i in range(len(self.features)):
23 feature = dc.array(self.features[i])
---> 24 opinion_difference = dc.sqrt(dc.power(dc.sub(feature, self.query),2)).sum()
25 survey.append([opinion_difference, self.labels[i]])
26
/usr/local/lib/python3.6/dist-packages/deepC/dnnc.py in (self, name)
20866 for _s in [floatplaceHolder]:
20867 swig_getmethods.update(getattr(_s, 'swig_getmethods', {}))
20868 getattr = lambda self, name: _swig_getattr(self, floatTensor, name)
20869
20870 def init(self, *args):
/usr/local/lib/python3.6/dist-packages/deepC/dnnc.py in _swig_getattr(self, class_type, name)
78 if method:
79 return method(self)
---> 80 raise AttributeError("'%s' object has no attribute '%s'" % (class_type.name, name))
81
82
AttributeError: 'floatTensor' object has no attribute 'sum'