class_docstr: Base class for the tree splitters.
  
  Each Attribute Observer (AO) or Splitter monitors one input feature and finds the best
  split point for this attribute. AOs can also perform other tasks related to the monitored
  feature, such as estimating its probability density function (classification case).
  
  This class should not be instantiated, as none of its methods are implemented.
class_docstr_tok: ["Base","class","for","the","tree","splitters",".","Each","Attribute","Observer","(","AO",")","or","Splitter","monitors","one","input","feature","and","finds","the","best","split","point","for","this","attribute",".","AOs","can","also","perform","other","tasks","related","to","the","monitored","feature",",","such","as","estimating","its","probability","density","function","(","classification","case",")",".","This","class","should","not","be","instantiated",",","as","none","of","its","methods","are","implemented","."]
docstr: Get the probability for an attribute value given a class.
  
  Parameters
  ----------
  att_val
      The value of the attribute.
  target_val
      The target (class label) value.
  
  Returns
  -------
      Probability for an attribute value given a class.
docstr_tok: ["Get","the","probability","for","an","attribute","value","given","a","class",".","Parameters","--","--","--","--","--","att_val","The","value","of","the","attribute",".","target_val","The","target","(","class","label",")","value",".","Returns","--","--","--","-","Probability","for","an","attribute","value","given","a","class","."]
code: def cond_proba(
      self, att_val, target_val: base.typing.ClfTarget
  ) -> float:
      """Get the probability for an attribute value given a class.
  
      Parameters
      ----------
      att_val
          The value of the attribute.
      target_val
          The target (class label) value.
  
      Returns
      -------
          Probability for an attribute value given a class.
  
      """
  
file_path: river/river/tree/splitter/base.py
imports: from __future__ import annotations
  import abc
  import typing
  from river import base
  from ..split_criterion.base import SplitCriterion
  from ..utils import BranchFactory, GradHess, GradHessStats
label_desc: Use image node_id 2 for calling the Splitter obj's underlying member method code with example usage: obj.cond_proba(att_val, target_val) without return types