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: The logged ratio of the likelihood of making the transition to the likelihood of making the reverse transition.
  e.g. in the case of using only grow and prune mutations:
      log(likelihood of growing from tree to the post mutation tree / likelihood of pruning from the post mutation tree to the tree)
  
  Parameters
  ----------
  tree: Tree
      The tree being changed
  mutation: TreeMutation
      the proposed mutation
  
  Returns
  -------
  float
      logged likelihood ratio
docstr_tok: ["The","logged","ratio","of","the","likelihood","of","making","the","transition","to","the","likelihood","of","making","the","reverse","transition",".","e.g",".","in","the","case","of","using","only","grow","and","prune","mutations",":","log","(","likelihood","of","growing","from","tree","to","the","post","mutation","tree","\/","likelihood","of","pruning","from","the","post","mutation","tree","to","the","tree",")","Parameters","--","--","--","--","--","tree",":","Tree","The","tree","being","changed","mutation",":","TreeMutation","the","proposed","mutation","Returns","--","--","--","-","float","logged","likelihood","ratio"]
code: def log_transition_ratio(
      self, tree: Tree, mutation: TreeMutation
  ) -> float:
      """
      The logged ratio of the likelihood of making the transition to the likelihood of making the reverse transition.
      e.g. in the case of using only grow and prune mutations:
          log(likelihood of growing from tree to the post mutation tree / likelihood of pruning from the post mutation tree to the tree)
  
      Parameters
      ----------
      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 2 for calling the TreeMutationLikelihoodRatio obj's underlying member method code with example usage: obj.log_transition_ratio(tree, mutation) without return types