class_docstr: NDArray trace object
  
  Parameters
  ----------
  name: str
      Name of backend. This has no meaning for the NDArray backend.
  model: Model
      If None, the model is taken from the `with` context.
  vars: list of variables
      Sampling values will be stored for these variables. If None,
      `model.unobserved_RVs` is used.
class_docstr_tok: ["NDArray","trace","object","Parameters","--","--","--","--","--","name",":","str","Name","of","backend",".","This","has","no","meaning","for","the","NDArray","backend",".","model",":","Model","If","None",",","the","model","is","taken","from","the","`","with","`","context",".","vars",":","list","of","variables","Sampling","values","will","be","stored","for","these","variables",".","If","None",",","`","model.unobserved_RVs","`","is","used","."]
docstr: Record results of a sampling iteration.
  
  Parameters
  ----------
  point: dict
      Values mapped to variable names
docstr_tok: ["Record","results","of","a","sampling","iteration",".","Parameters","--","--","--","--","--","point",":","dict","Values","mapped","to","variable","names"]
code: def record(self, point, sampler_stats=None) -> None:
      """Record results of a sampling iteration.
  
      Parameters
      ----------
      point: dict
          Values mapped to variable names
      """
      for varname, value in zip(self.varnames, self.fn(point)):
          self.samples[varname][self.draw_idx] = value
  
      if self._stats is not None and sampler_stats is None:
          raise ValueError("Expected sampler_stats")
      if self._stats is None and sampler_stats is not None:
          raise ValueError("Unknown sampler_stats")
      if sampler_stats is not None:
          for data, vars in zip(self._stats, sampler_stats):
              for key, val in vars.items():
                  data[key][self.draw_idx] = val
      self.draw_idx += 1
  
file_path: pymc/pymc/backends/ndarray.py
imports: from typing import Any, Dict, List, Optional
  import numpy
  from pymc.backends import base
  from pymc.backends.base import MultiTrace
  from pymc.model import Model, modelcontext
label_desc: Use image node_id 3 for calling the NDArray obj's underlying member method code with example usage: obj.record(point, sampler_stats) without return types