class_docstr: A sampler for tree mutation space.
  Responsible for producing samples of ways to mutate a tree within a model
  
  Works by combining a proposer and likelihood evaluator into:
   - propose a mutation
   - assess likelihood
   - accept if likelihood higher than a uniform(0, 1) draw
  
  Parameters
  ----------
  proposer: TreeMutationProposer
  likelihood_ratio: TreeMutationLikelihoodRatio
class_docstr_tok: ["A","sampler","for","tree","mutation","space",".","Responsible","for","producing","samples","of","ways","to","mutate","a","tree","within","a","model","Works","by","combining","a","proposer","and","likelihood","evaluator","into",":","-","propose","a","mutation","-","assess","likelihood","-","accept","if","likelihood","higher","than","a","uniform","(","0",",","1",")","draw","Parameters","--","--","--","--","--","proposer",":","TreeMutationProposer","likelihood_ratio",":","TreeMutationLikelihoodRatio"]
code: def __init__(
      self,
      proposer: TreeMutationProposer,
      likelihood_ratio: TreeMutationLikelihoodRatio,
      scalar_sampler=UniformScalarSampler(),
  ):
      self.proposer = proposer
      self.likelihood_ratio = likelihood_ratio
      self._scalar_sampler = scalar_sampler
  
file_path: imodels/imodels/experimental/bartpy/samplers/unconstrainedtree/treemutation.py
imports: from typing import Optional, Tuple
  import numpy
  from ...model import Model
  from ...mutation import TreeMutation
  from ...samplers.sampler import Sampler
  from ...samplers.scalar import UniformScalarSampler
  from ...samplers.treemutation import TreeMutationLikelihoodRatio
  from ...samplers.treemutation import TreeMutationProposer
  from ...samplers.unconstrainedtree.likelihoodratio import UniformTreeMutationLikelihoodRatio
  from ...samplers.unconstrainedtree.proposer import UniformMutationProposer
  from ...tree import Tree, mutate
label_desc: Use image node_id 1 to create a new UnconstrainedTreeMutationSampler object from inherited base classes: Sampler with example: obj = UnconstrainedTreeMutationSampler(proposer, likelihood_ratio, scalar_sampler)