Skip to content

Commit

Permalink
Delete euclidean_distance function (due to being unnecessary).
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanganhngo610 committed Sep 13, 2023
1 parent 2a80d3c commit 74055db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions river/cluster/hcluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ def __init__(self, key: int, data: np.ndarray = None):
self.parent = None


def euclidean_distance(w_i, w_j):
# Euclidean distance between two nodes
return np.linalg.norm(w_i.data - w_j.data)


class HierarchicalClustering(base.Clusterer):
"""Hierarchical Clustering.
Expand Down

0 comments on commit 74055db

Please sign in to comment.