Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 94caecf

Browse files
authoredOct 2, 2024··
Update dbscan.py with annotation for dict1
1 parent 3fa1d18 commit 94caecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎machine_learning/dbscan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def perform_dbscan(self) -> dict[int, list[int]]:
124124
else:
125125
data = pd.DataFrame(list(self.file))
126126
e = self.radius
127-
dict1 = {}
127+
dict1: dict[int, list[int]] = {}
128128
for i in range(len(data)):
129129
for j in range(len(data)):
130130
dist = math.sqrt(

0 commit comments

Comments
 (0)
Please sign in to comment.