class_docstr: A base distribution object.
  
  This distribution is inherited by all the other distributions.
class_docstr_tok: ["A","base","distribution","object",".","This","distribution","is","inherited","by","all","the","other","distributions","."]
code: def fit(self, X, sample_weight=None):
      self.summarize(X, sample_weight=sample_weight)
      self.from_summaries()
      return self
  
imports: import torch
  from .._utils import _cast_as_tensor
  from .._utils import _update_parameter
  from .._utils import _cast_as_parameter
  from .._utils import _check_parameter
  from .._utils import _reshape_weights
label_desc: Use image node_id 10 for calling the Distribution obj's underlying member method code with example usage: obj.fit(X, sample_weight) and returns: self