webstruct
webstruct copied to clipboard
Custom clustering
In this PR:
- fix for
default_clustering_score
to reduce score for clustering withthreshold=0
- ability to pass custom distance and position functions to clustering procedure
- new
_get_tree_position
and_get_tree_distance
functions provide much better grouping results
I didn't set these new functions as default functions. Using them as default will improve grouping quality.
Codecov Report
Merging #66 into master will decrease coverage by
0.59%
. The diff coverage is68.18%
.
@@ Coverage Diff @@
## master #66 +/- ##
=========================================
- Coverage 81.02% 80.43% -0.6%
=========================================
Files 40 40
Lines 2092 2131 +39
=========================================
+ Hits 1695 1714 +19
- Misses 397 417 +20