0fb615b9a68f6eb642598b360c007a64d022027a,examples/pytorch/ogb/deepwalk/deepwalk.py,,,#,236
Before Change
parser.add_argument("--only_gpu", default=False, action="store_true",
help="training with GPU")
parser.add_argument("--adam", default=False, action="store_true",
help="use adam for embedding updation, recommended")
parser.add_argument("--sgd", default=False, action="store_true",
help="use sgd for embedding updation")
parser.add_argument("--avg_sgd", default=False, action="store_true",
help="average gradients of sgd for embedding updation")
After Change
args = parser.parse_args()
if args.async_update:
assert args.mix, "--async_update only with --mix"
start_time = time.time()
trainer = DeepwalkTrainer(args)
trainer.train()
print("Total used time: %.2f" % (time.time() - start_time))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/dgl
Commit Name: 0fb615b9a68f6eb642598b360c007a64d022027a
Time: 2020-07-22
Author: taxuexh@sjtu.edu.cn
File Name: examples/pytorch/ogb/deepwalk/deepwalk.py
Class Name:
Method Name:
Project Name: mynlp/ccg2lambda
Commit Name: a651b0632f8f9ac9dbcff6c041d29e886ce54bd1
Time: 2017-05-30
Author: pascual@nii.ac.jp
File Name: scripts/restruct.py
Class Name:
Method Name: main
Project Name: dhlab-epfl/dhSegment
Commit Name: d978171389863497ee5060ee5fec366c562564e4
Time: 2017-07-14
Author: sofia.oliveiraares@epfl.ch
File Name: train_fc-cnn.py
Class Name:
Method Name: