You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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', {}))
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', {}))
/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'
The text was updated successfully, but these errors were encountered: