class_docstr: Switcher that goes back to generator/critic when the loss goes below `gen_thresh`/`crit_thresh`.
class_docstr_tok: ["Switcher","that","goes","back","to","generator\/critic","when","the","loss","goes","below","`","gen_thresh","`","\/","`","crit_thresh","`","."]
code: def __init__(
      self,
      gen_thresh: None | float = None,  # Loss threshold for generator
      critic_thresh: None | float = None,  # Loss threshold for critic
  ):
      store_attr("gen_thresh,critic_thresh")
  
imports: from __future__ import annotations
  from ..basics import *
  from .all import *
label_desc: Use image node_id 1 to create a new AdaptiveGANSwitcher object from inherited base classes: Callback with example: obj = AdaptiveGANSwitcher(gen_thresh, critic_thresh)