Rhoana / pyrtree

An R-Tree implementation
36 stars 19 forks source link

Update rtree.py #3

Open GLeurquin opened 5 years ago

GLeurquin commented 5 years ago

Fixes '>' not supported between instances of '_NodeCursor' and '_NodeCursor', which happens when there are identical silhouette coefficients, as the max method will then try to sort by the nodes, but there is no compare method defined on the nodes. This fix will just select one of the best silhouette coefficients