class_docstr: A simple default backend that stores the chain in memory
class_docstr_tok: ["A","simple","default","backend","that","stores","the","chain","in","memory"]
docstr: Access the most recent sample in the chain
docstr_tok: ["Access","the","most","recent","sample","in","the","chain"]
code: def get_last_sample(self):
      """Access the most recent sample in the chain"""
      if (not self.initialized) or self.iteration <= 0:
          raise AttributeError(
              "you must run the sampler with "
              "'store == True' before accessing the "
              "results"
          )
      it = self.iteration
      blobs = self.get_blobs(discard=it - 1)
      if blobs is not None:
          blobs = blobs[0]
      return State(
          self.get_chain(discard=it - 1)[0],
          log_prob=self.get_log_prob(discard=it - 1)[0],
          blobs=blobs,
          random_state=self.random_state,
      )
  
imports: import numpy
  from ..None import autocorr
  from ..state import State
label_desc: Use image node_id 8 for calling the Backend obj's underlying member method code with example usage: obj.get_last_sample() and returns: State