class_docstr: Logs training runs to Weights & Biases.
  
  !!! Note
      This requires the environment variable 'WANDB_API_KEY' to be set in order
      to authenticate with Weights & Biases. If not set, you may be prompted to
      log in or upload the experiment to an anonymous account.
  
  In addition to the parameters that `LogWriterCallback` takes, there are several other
  parameters specific to `WandBWriter` listed below.
  
  # Parameters
  
  project : `Optional[str]`, optional (default = `None`)
      The name of the W&B project to save the training run to.
  entity : `Optional[str]`, optional (default = `None`)
      The username or team name to send the run to. If not specified, the default
      will be used.
  group : `Optional[str]`, optional (default = `None`)
      Specify a group to organize individual runs into a larger experiment.
  name : `Optional[str]`, optional (default = `None`)
      A short display name for this run, which is how you'll identify this run in the W&B UI.
      By default a random name is generated.
  notes : `Optional[str]`, optional (default = `None`)
      A description of the run.
  tags : `Optional[List[str]]`, optional (default = `None`)
      Tags to assign to the training run in W&B.
  watch_model : `bool`, optional (default = `True`)
      Whether or not W&B should watch the `Model`.
  files_to_save : `Tuple[str, ...]`, optional (default = `("config.json", "out.log")`)
      Extra files in the serialization directory to save to the W&B training run.
  wandb_kwargs : `Optional[Dict[str, Any]]`, optional (default = `None`)
      Additional key word arguments to pass to [`wandb.init()`](https://docs.wandb.ai/ref/python/init).
class_docstr_tok: ["Logs","training","runs","to","Weights","&","Biases",".","!","!","!","Note","This","requires","the","environment","variable","'WANDB_API_KEY","'","to","be","set","in","order","to","authenticate","with","Weights","&","Biases",".","If","not","set",",","you","may","be","prompted","to","log","in","or","upload","the","experiment","to","an","anonymous","account",".","In","addition","to","the","parameters","that","`","LogWriterCallback","`","takes",",","there","are","several","other","parameters","specific","to","`","WandBWriter","`","listed","below",".","#","Parameters","project",":","`","Optional","[","str","]","`",",","optional","(","default","=","`","None","`",")","The","name","of","the","W","&","B","project","to","save","the","training","run","to",".","entity",":","`","Optional","[","str","]","`",",","optional","(","default","=","`","None","`",")","The","username","or","team","name","to","send","the","run","to",".","If","not","specified",",","the","default","will","be","used",".","group",":","`","Optional","[","str","]","`",",","optional","(","default","=","`","None","`",")","Specify","a","group","to","organize","individual","runs","into","a","larger","experiment",".","name",":","`","Optional","[","str","]","`",",","optional","(","default","=","`","None","`",")","A","short","display","name","for","this","run",",","which","is","how","you","'ll","identify","this","run","in","the","W","&","B","UI",".","By","default","a","random","name","is","generated",".","notes",":","`","Optional","[","str","]","`",",","optional","(","default","=","`","None","`",")","A","description","of","the","run",".","tags",":","`","Optional","[","List","[","str","]","]","`",",","optional","(","default","=","`","None","`",")","Tags","to","assign","to","the","training","run","in","W","&","B",".","watch_model",":","`","bool","`",",","optional","(","default","=","`","True","`",")","Whether","or","not","W","&","B","should","watch","the","`","Model","`",".","files_to_save",":","`","Tuple","[","str",",","...","]","`",",","optional","(","default","=","`","(","``","config.json","''",",","``","out.log","''",")","`",")","Extra","files","in","the","serialization","directory","to","save","to","the","W","&","B","training","run",".","wandb_kwargs",":","`","Optional","[","Dict","[","str",",","Any","]","]","`",",","optional","(","default","=","`","None","`",")","Additional","key","word","arguments","to","pass","to","[","`","wandb.init","(",")","`","]","(","https",":","\/\/docs.wandb.ai\/ref\/python\/init",")","."]
code: def load_state_dict(self, state_dict: Dict[str, Any]) -> None:
      self._wandb_kwargs["resume"] = "auto"
      self._run_id = state_dict["run_id"]
  
file_path: allennlp/allennlp/training/callbacks/wandb.py
imports: import logging
  import os
  from typing import Optional, Dict, Any, List, Union, Tuple, TYPE_CHECKING
  import torch
  from allennlp.common import Params
  from allennlp.training.callbacks.callback import TrainerCallback
  from allennlp.training.callbacks.log_writer import LogWriterCallback
label_desc: Use image node_id 8 for calling the WandBCallback obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types