class_docstr: Minimal interface needed to record and access draws and stats for one MCMC chain.
class_docstr_tok: ["Minimal","interface","needed","to","record","and","access","draws","and","stats","for","one","MCMC","chain","."]
docstr: Get sampler statistics from the trace.
  
  Parameters
  ----------
  stat_name : str
      Name of the stat to fetch.
  sampler_idx : int or None
      Index of the sampler to get the stat from.
  burn : int
      Draws to skip from the start.
  thin : int
      Stepsize for the slice.
  
  Returns
  -------
  stats : np.ndarray
      If `sampler_idx` was specified, the shape should be `(draws,)`.
      Otherwise, the shape should be `(draws, samplers)`.
docstr_tok: ["Get","sampler","statistics","from","the","trace",".","Parameters","--","--","--","--","--","stat_name",":","str","Name","of","the","stat","to","fetch",".","sampler_idx",":","int","or","None","Index","of","the","sampler","to","get","the","stat","from",".","burn",":","int","Draws","to","skip","from","the","start",".","thin",":","int","Stepsize","for","the","slice",".","Returns","--","--","--","-","stats",":","np.ndarray","If","`","sampler_idx","`","was","specified",",","the","shape","should","be","`","(","draws",",",")","`",".","Otherwise",",","the","shape","should","be","`","(","draws",",","samplers",")","`","."]
code: def get_sampler_stats(
      self,
      stat_name: str,
      sampler_idx: Optional[int] = None,
      burn=0,
      thin=1,
  ) -> np.ndarray:
      """Get sampler statistics from the trace.
  
      Parameters
      ----------
      stat_name : str
          Name of the stat to fetch.
      sampler_idx : int or None
          Index of the sampler to get the stat from.
      burn : int
          Draws to skip from the start.
      thin : int
          Stepsize for the slice.
  
      Returns
      -------
      stats : np.ndarray
          If `sampler_idx` was specified, the shape should be `(draws,)`.
          Otherwise, the shape should be `(draws, samplers)`.
      """
      raise NotImplementedError()
  
imports: import itertools
  import logging
  import warnings
  from abc import ABC
  from typing import Any, Dict, List, Mapping, Optional, Sequence, Set, Sized, Tuple, TypeVar, Union, cast
  import numpy
  from pymc.backends.report import SamplerReport
  from pymc.model import modelcontext
  from pymc.util import get_var_name
label_desc: Use image node_id 3 for calling the IBaseTrace obj's underlying member method code with example usage: obj.get_sampler_stats(stat_name, sampler_idx, burn, thin) without return types