Skip to content

Commit

Permalink
Fixup: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobnissen committed Aug 27, 2024
1 parent f5e7982 commit ba4124b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vamb/reclustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
EPS_VALUES = np.arange(0.01, 0.35, 0.02)


# TODO: This might be slightly algorithmically inefficient. The big problem is that it re-heapifies
# the heap whenever a bin is emitted, which makes it O(N^2).
# To solve this, I need some datastructure which is like a heap, but which allows me to update
# arbitrary elements in the heap.
# This can be solved with a MutableBinaryMaxHeap in Julia's DataStructures.jl, for inspiration.
def deduplicate(
scoring: Callable[[set[ContigId]], float],
bins: dict[BinId, set[ContigId]],
Expand Down

0 comments on commit ba4124b

Please sign in to comment.