class_docstr: The implementation of OnlineTool based on (R)ecorder.
class_docstr_tok: ["The","implementation","of","OnlineTool","based","on","(","R",")","ecorder","."]
docstr: Offline all models and set the recorders to 'online'.
  
  Args:
      recorder (Union[Recorder, List]):
          the recorder you want to reset to 'online'.
      exp_name (str): the experiment name. If None, then use default_exp_name.
docstr_tok: ["Offline","all","models","and","set","the","recorders","to","'online","'",".","Args",":","recorder","(","Union","[","Recorder",",","List","]",")",":","the","recorder","you","want","to","reset","to","'online","'",".","exp_name","(","str",")",":","the","experiment","name",".","If","None",",","then","use","default_exp_name","."]
code: def reset_online_tag(
      self, recorder: Union[Recorder, List], exp_name: str = None
  ):
      """
      Offline all models and set the recorders to 'online'.
  
      Args:
          recorder (Union[Recorder, List]):
              the recorder you want to reset to 'online'.
          exp_name (str): the experiment name. If None, then use default_exp_name.
  
      """
      exp_name = self._get_exp_name(exp_name)
      if isinstance(recorder, Recorder):
          recorder = [recorder]
      recs = list_recorders(exp_name)
      self.set_online_tag(self.OFFLINE_TAG, list(recs.values()))
      self.set_online_tag(self.ONLINE_TAG, recorder)
  
imports: from typing import List, Union
  from qlib.log import get_module_logger
  from qlib.utils.exceptions import LoadObjectError
  from qlib.workflow.online.update import PredUpdater
  from qlib.workflow.recorder import Recorder
  from qlib.workflow.task.utils import list_recorders
label_desc: Use image node_id 4 for calling the OnlineToolR obj's underlying member method code with example usage: obj.reset_online_tag(recorder, exp_name) without return types