209a8814bd8c353e97827bc20c56b1dc6a79fdca,python/magent/model.py,,model_client,#Any#Any#Any#Any#,217
Before Change
obs = cmd[1]
ids = cmd[2]
policy = cmd[3]
eps = cmd[4]
acts = model.infer_action(obs, ids, policy=policy, eps=eps)
conn.send(acts)
elif cmd[0] == "train":
print_every = cmd[1]
After Change
model = RLModel(**model_args)
sample_buffer = magent.utility.EpisodesBuffer(capacity=sample_buffer_capacity)
conn = multiprocessing.connection.Client(addr)
while True:
cmd = conn.recv()
if cmd[0] == "act":
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: geek-ai/MAgent
Commit Name: 209a8814bd8c353e97827bc20c56b1dc6a79fdca
Time: 2017-12-02
Author: zhenglianmin96@163.com
File Name: python/magent/model.py
Class Name:
Method Name: model_client
Project Name: home-assistant/home-assistant
Commit Name: db7abc1cfeb749f3814b0811bd230ef91582dd77
Time: 2016-09-01
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/pilight.py
Class Name:
Method Name: setup
Project Name: tensorflow/tensorboard
Commit Name: 07b39e0b026f852e93f963eb173b9c54aa0049b0
Time: 2017-06-19
Author: jart@google.com
File Name: tensorboard/backend/application_test.py
Class Name: TensorboardServerTest
Method Name: setUp
Project Name: calico/basenji
Commit Name: b20519b48878790c35b443eaa62efe0fe5f763fc
Time: 2018-03-01
Author: drk@calicolabs.com
File Name: bin/basenji_fetch_app.py
Class Name:
Method Name: main