We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7795389 commit 8a26df1Copy full SHA for 8a26df1
1 file changed
skrebate/relieff.py
@@ -312,7 +312,7 @@ def pre_normalize(x):
312
d_dist = squareform(pdist(xd, metric='hamming'))
313
# Cityblock is also known as Manhattan distance
314
c_dist = squareform(pdist(pre_normalize(xc), metric='cityblock'))
315
- return np.add(d_dist, c_dist) / self._num_attributes
+ return np.add(d_dist * self._num_attributes, c_dist)
316
317
else: #continuous features only
318
#xc = pre_normalize(xc)
0 commit comments