original_docstring: Parse args from command line.
  
      Returns:
          args object.
      
docstring: Parse args from command line.
docstring_tokens: Parse args from command line .
code: def parse_args():
      """Parse args from command line.
  
      Returns:
          args object.
      """
      parser = argparse.ArgumentParser(description="Run MixGCF-LightGCN..")
      parser.add_argument(
          "--config_file",
          nargs="?",
          type=str,
          default="../configs/mixgcf_default.json",
          help="Specify the config file name. Only accept a file from ../configs/",
      )
      # If the following settings are specified with command line,
      # These settings will used to update the parameters received from the config file.
      parser.add_argument(
          "--emb_dim", nargs="?", type=int, help="Dimension of the embedding."
      )
      parser.add_argument(
          "--tune",
          nargs="?",
          type=str,
          default=False,
          help="Tun parameter",
      )
      parser.add_argument(
          "--n_negs",
          nargs="?",
          type=float,
          help="Number of candidate negatives",
          default=64,
      )
      parser.add_argument("--lr", nargs="?", type=float, help="Initialize learning rate.")
      parser.add_argument(
          "--K",
          nargs="?",
          type=float,
          default=1,
          help="number of negative in K-pair loss",
      )
      parser.add_argument("--max_epoch", nargs="?", type=int, help="Number of max epoch.")
      parser.add_argument(
          "--pool", type=str, default="concat", help="[concat, mean, sum]"
      )
      parser.add_argument("--context_hops", type=int, default=3, help="hop")
      parser.add_argument(
          "--batch_size", nargs="?", type=int, help="Batch size for training."
      )
      return parser.parse_args()
code_tokens: def parse_args ( ) : parser = argparse . ArgumentParser ( description = "Run MixGCF-LightGCN.." ) parser . add_argument ( "--config_file" , nargs = "?" , type = str , default = "../configs/mixgcf_default.json" , help = "Specify the config file name. Only accept a file from ../configs/" , ) parser . add_argument ( "--emb_dim" , nargs = "?" , type = int , help = "Dimension of the embedding." ) parser . add_argument ( "--tune" , nargs = "?" , type = str , default = False , help = "Tun parameter" , ) parser . add_argument ( "--n_negs" , nargs = "?" , type = float , help = "Number of candidate negatives" , default = 64 , ) parser . add_argument ( "--lr" , nargs = "?" , type = float , help = "Initialize learning rate." ) parser . add_argument ( "--K" , nargs = "?" , type = float , default = 1 , help = "number of negative in K-pair loss" , ) parser . add_argument ( "--max_epoch" , nargs = "?" , type = int , help = "Number of max epoch." ) parser . add_argument ( "--pool" , type = str , default = "concat" , help = "[concat, mean, sum]" ) parser . add_argument ( "--context_hops" , type = int , default = 3 , help = "hop" ) parser . add_argument ( "--batch_size" , nargs = "?" , type = int , help = "Batch size for training." ) return parser . parse_args ( )
short_docstring: Parse args from command line.
short_docstring_tokens: Parse args from command line .
comment: """Parse args from command line.
  
      Returns:
          args object.
      """$SEP$# If the following settings are specified with command line,$SEP$# These settings will used to update the parameters received from the config file.