code: def clear(self):
          '''Clear history of samples and other internal variables to free memory.
  
          .. note::
              The proposal is untouched.
  
          '''
          self.samples.clear()
          self.weights.clear()
          if self.target_values is not None:
              self.target_values.clear(f clear(self):
          '''Clear history of samples and other internal variables to free memory.
  
          .. note::
              The proposal is untouched.
  
          '''
          self.samples.clear()
          self.weights.clear()
          if self.target_values is not None:
              self.target_values.clear()
docs: Clear history of samples and other internal variables to free memory.
  
          .. note::
              The proposal is untouched.