667d856a2fc27732d745cd7d926e9739ad12995c,example/ctr/ctr/train.py,,train,#,183
Before Change
cmd = "cd /workspace/ctr/data/ && curl -o dac.tar.gz " + address + " && tar zxf dac.tar.gz && rm dac.tar.gz"
exit_code = subprocess.call(cmd, shell=True)
if exit_code != 0:
raise Exception("The download command failed, please check the network settings")
logger.info("run trainer")
train_prog = t.get_trainer_program()
train_loop(args, train_prog, py_reader, loss, auc_var, batch_auc_var,
args.trainers, args.trainer_id)
After Change
// comma separated ips of all pservers, needed by trainer and
args.endpoints = os.getenv("PADDLE_PSERVERS", "")
ep_list = args.endpoints.split(",")
args.trainers = int(os.getenv("PADDLE_TRAINERS_NUM", "1"))
args.pserver_id = int(os.getenv("PADDLE_PSERVER_ID", "0"))
for ep in ep_list:
if os.getenv("POD_IP", "localhost") in ep:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: PaddlePaddle/edl
Commit Name: 667d856a2fc27732d745cd7d926e9739ad12995c
Time: 2019-09-28
Author: wangjiawei04@baidu.com
File Name: example/ctr/ctr/train.py
Class Name:
Method Name: train
Project Name: ilastik/ilastik
Commit Name: 02480197d8b24414166eb23b573d7e5ac9e49a7a
Time: 2019-08-01
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: _readDatasetInfo
Project Name: acl-org/acl-anthology
Commit Name: 7419eacac2dfa909b280881524e685d7ea4d7ec7
Time: 2020-04-24
Author: post@cs.jhu.edu
File Name: bin/add_attachments.py
Class Name:
Method Name: add_attachment