c7c06f56e918cabf565d4e4454daa344137d1f0f,contrib/rl/tictactoe.py,,main,#,151
Before Change
tf.train.AdamOptimizer, learning_rate=0.01)
a3c.fit(100000)
env.reset()
while not env._terminated:
print(env.display())
print(a3c.predict(env._state))
action = a3c.select_action(env._state)
print(action)
print(env.step(action))
print(env.display())
if __name__ == "__main__":
After Change
score = eval_tic_tac_toe(value_weight)
scores[value_weight] = score
with open("tictactoe_value_search.json", "w") as fout:
fout.write(json.dumps(scores))
value_weight += 0.05
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepchem/deepchem
Commit Name: c7c06f56e918cabf565d4e4454daa344137d1f0f
Time: 2017-05-25
Author: Karl
File Name: contrib/rl/tictactoe.py
Class Name:
Method Name: main
Project Name: studioml/studio
Commit Name: 514e97adf46aa0cad330d44ae820a793c6a1e308
Time: 2017-06-06
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name:
Method Name: _remove_backspaces
Project Name: pantsbuild/pants
Commit Name: 57764c143badff6a194a83a818b8f95bb8df7625
Time: 2013-10-04
Author: john@foursquare.com
File Name: src/python/twitter/pants/tasks/nailgun_task.py
Class Name: NailgunTask
Method Name: _await_nailgun_server