matsengrp / larch

Inference and manipulation of history DAGs
2 stars 2 forks source link

move score coefficient and optimal weight tree counting #41

Closed willdumm closed 1 year ago

willdumm commented 1 year ago

This PR contains two improvements to larch-usher:

willdumm commented 1 year ago

In the last commit I added MinWeightSampleTree to sample a minimum-weight tree, given any SubtreeWeight... This could be extended to uniformly sample a min weight tree using cached_subtree_counts_, which might be more useful. I also added an option to use this min-weight sampling, and I added elapsed seconds to the logger.

I haven't had time today to write a test for minimum weight sampling.