Skip to content

Commit

Permalink
chore: fix typing of array in clusterer
Browse files Browse the repository at this point in the history
  • Loading branch information
shailx383 committed Jul 30, 2023
1 parent f369f54 commit 54d1144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clusterer/datapoint_clusterer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def create_clusters(_datapoints: list[Datapoint], _epsilon:float, _min_samples:i
Returns:
list[Cluster] : a list of clusters found
"""
points = np.array([point.data for point in _datapoints])
points = np.array([point.data.numpy() for point in _datapoints])
scaler = StandardScaler()
scaler.fit(points)
points = scaler.transform(points)
Expand Down

0 comments on commit 54d1144

Please sign in to comment.