(k)
| 531 | # multiplicative values and weights. Just use a greedy algorithm |
| 532 | # by trying dimensions in decreasing value / weight order. |
| 533 | def key(k): |
| 534 | gse = graph_size_effect[k] |
| 535 | bse = block_size_effect[k] |
| 536 | if bse == 1: |
| 537 | bse = 1 + 1e-9 |
| 538 | return (np.log(gse) / np.log(bse)) if bse > 0 else 0 |
| 539 | |
| 540 | sorted_candidates = sorted(merge_candidates, key=key) |
| 541 |
nothing calls this directly
no outgoing calls
no test coverage detected