NopTriePostprocessor
- class NopTriePostprocessor[source]
Functor for nop trie postprocess.
- __init__()
Methods
- __call__(trie: ~hstrat.phylogenetic_inference.tree._impl._TrieInnerNode.TrieInnerNode | ~pandas.core.frame.DataFrame | ~polars.dataframe.frame.DataFrame, p_differentia_collision: float, mutate: bool = False, progress_wrap: ~typing.Callable = <function NopTriePostprocessor.<lambda>>) TrieInnerNode | DataFrame | DataFrame[source]
Apply postprocess functors to the input trie.
Parameters
- trieTrieInnerNode or pd.DataFrame or pl.DataFrame
The input trie to be postprocessed.
- p_differentia_collisionfloat
Probability of a randomly-generated differentia matching an existing differentia.
Not used in the current implementation.
- mutatebool, default False
Are side effects on the input argument trie allowed?
If False, a deep copy of the input trie is made.
- progress_wraptyping.Callable, optional
Pass tqdm or equivalent to report progress.
Returns
- TrieInnerNode or pd.DataFrame or pl.DataFrame
The postprocessed trie, identical to input.