docstr: Reset the internally stored statistics.
  
  This method is meant to only be called internally. It resets the
  stored statistics used to update the model parameters as well as
  recalculates the cached values meant to speed up log probability
  calculations.
docstr_tok: ["Reset","the","internally","stored","statistics",".","This","method","is","meant","to","only","be","called","internally",".","It","resets","the","stored","statistics","used","to","update","the","model","parameters","as","well","as","recalculates","the","cached","values","meant","to","speed","up","log","probability","calculations","."]
code: def _reset_cache(self):
      """Reset the internally stored statistics.
  
      This method is meant to only be called internally. It resets the
      stored statistics used to update the model parameters as well as
      recalculates the cached values meant to speed up log probability
      calculations.
      """
  
      if self._initialized == False:
          return
  
      self.register_buffer(
          "_w_sum", torch.zeros(self.k, device=self.device)
      )
      self.register_buffer("_log_priors", torch.log(self.priors))
  
file_path: pomegranate/pomegranate/_bayes.py
imports: import torch
  from ._utils import _cast_as_tensor
  from ._utils import _update_parameter
  from ._utils import _check_parameter
  from ._utils import _reshape_weights
  from .distributions._distribution import Distribution
label_desc: Use image node_id 1 for calling the BayesMixin obj's underlying member method code with example usage: obj._reset_cache() without return types