c7c06f56e918cabf565d4e4454daa344137d1f0f,contrib/rl/tictactoe.py,,main,#,151
Before Change
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)
After Change
value_weight = 0.05
while value_weight <= 1.0:
print(value_weight)
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: 3
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: facebookresearch/ParlAI
Commit Name: 06bb64cd6f06413528f5c634da7517350541adeb
Time: 2018-02-05
Author: kshuster@fb.com
File Name: examples/extract_image_feature.py
Class Name:
Method Name: main
Project Name: bokeh/bokeh
Commit Name: 4c1f6d97b20fa487d6179d225b7c858a24a93866
Time: 2017-08-17
Author: lcanavan@continuum.io
File Name: bokeh/io.py
Class Name:
Method Name: _show_notebook_app_with_state