class_docstr: This class implements a regressor with the PyTorch framework.
class_docstr_tok: ["This","class","implements","a","regressor","with","the","PyTorch","framework","."]
docstr: Resets the weights of the regressor so that it can be refit from scratch.
docstr_tok: ["Resets","the","weights","of","the","regressor","so","that","it","can","be","refit","from","scratch","."]
code: def reset(self) -> None:
      """
      Resets the weights of the regressor so that it can be refit from scratch.
  
      """
  
      def weight_reset(module):
          reset_parameters = getattr(module, "reset_parameters", None)
          if reset_parameters and callable(reset_parameters):
              module.reset_parameters()
  
      self.model.apply(weight_reset)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import copy
  import logging
  import os
  import time
  from typing import Any, Dict, List, Optional, Tuple, Union, TYPE_CHECKING
  import numpy
  import six
  from art import config
  from art.estimators.regression.regressor import RegressorMixin
  from art.estimators.pytorch import PyTorchEstimator
label_desc: Use image node_id 15 for calling the PyTorchRegressor obj's underlying member method code with example usage: obj.reset() without return types