class_docstr: Responsible for evaluating the ratio of mutations to the reverse movement
class_docstr_tok: ["Responsible","for","evaluating","the","ratio","of","mutations","to","the","reverse","movement"]
docstr: Logged ratio of the likelihood of the tree before and after the mutation
  i.e. the product of the probability of all split nodes being split and all leaf node note being split
  
  Parameters
  ----------
  model: Model
      The model the tree to be changed is part of
  tree: Tree
      The tree being changed
  mutation: TreeMutation
      the proposed mutation
  
  Returns
  -------
  float
      logged likelihood ratio
docstr_tok: ["Logged","ratio","of","the","likelihood","of","the","tree","before","and","after","the","mutation","i.e",".","the","product","of","the","probability","of","all","split","nodes","being","split","and","all","leaf","node","note","being","split","Parameters","--","--","--","--","--","model",":","Model","The","model","the","tree","to","be","changed","is","part","of","tree",":","Tree","The","tree","being","changed","mutation",":","TreeMutation","the","proposed","mutation","Returns","--","--","--","-","float","logged","likelihood","ratio"]
code: def log_tree_ratio(
      self, model: Model, tree: Tree, mutation: TreeMutation
  ) -> float:
      """
      Logged ratio of the likelihood of the tree before and after the mutation
      i.e. the product of the probability of all split nodes being split and all leaf node note being split
  
      Parameters
      ----------
      model: Model
          The model the tree to be changed is part of
      tree: Tree
          The tree being changed
      mutation: TreeMutation
          the proposed mutation
  
      Returns
      -------
      float
          logged likelihood ratio
      """
  
      raise NotImplementedError()
  
file_path: imodels/imodels/experimental/bartpy/samplers/treemutation.py
imports: import numpy
  from abc import abstractmethod, ABC
  from typing import Optional, Tuple
  from ..model import Model
  from ..mutation import TreeMutation
  from ..samplers.sampler import Sampler
  from ..tree import Tree
label_desc: Use image node_id 3 for calling the TreeMutationLikelihoodRatio obj's underlying member method code with example usage: obj.log_tree_ratio(model, tree, mutation) without return types