We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3e3e92 + c78ed7f commit 9b0ef52Copy full SHA for 9b0ef52
gen_anchors.py
@@ -95,11 +95,7 @@ def run_kmeans(ann_dims, anchor_num):
95
for i in range(ann_num):
96
centroid_sums[assignments[i]]+=ann_dims[i]
97
for j in range(anchor_num):
98
-<<<<<<< HEAD
99
centroids[j] = centroid_sums[j]/(np.sum(assignments==j) + 1e-6)
100
-=======
101
- centroids[j] = centroid_sums[j]/(np.sum(assignments==j))
102
->>>>>>> 4843db4a6c199941d8e4e57bdd86af7d33882c61
103
104
prev_assignments = assignments.copy()
105
old_distances = distances.copy()
@@ -138,4 +134,4 @@ def main(argv):
138
134
139
135
if __name__ == '__main__':
140
136
args = argparser.parse_args()
141
- main(args)
137
+ main(args)
0 commit comments