fec23179223cbde694b1611046221fc07a851824,deepchem/rl/mcts.py,MCTS,_run_episodes,#MCTS#Any#Any#Any#Any#,297
Before Change
else:
root = root.children[action]
if time.time() > self._checkpoint_time:
self._checkpoint_index += 1
saver.save(
self._graph.session,
self._graph.save_file,
global_step=self._checkpoint_index)
self._checkpoint_time = time.time()
return buffer
def _optimize_policy(self, buffer, epochs):
After Change
else:
root = root.children[action]
if time.time() > self._checkpoint_time:
with self._graph.session.as_default():
manager.save()
self._checkpoint_time = time.time()
return buffer
def _optimize_policy(self, buffer, epochs):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: deepchem/deepchem
Commit Name: fec23179223cbde694b1611046221fc07a851824
Time: 2019-04-05
Author: peastman@stanford.edu
File Name: deepchem/rl/mcts.py
Class Name: MCTS
Method Name: _run_episodes
Project Name: deepchem/deepchem
Commit Name: fec23179223cbde694b1611046221fc07a851824
Time: 2019-04-05
Author: peastman@stanford.edu
File Name: deepchem/metalearning/maml.py
Class Name: MAML
Method Name: fit
Project Name: deepchem/deepchem
Commit Name: fec23179223cbde694b1611046221fc07a851824
Time: 2019-04-05
Author: peastman@stanford.edu
File Name: deepchem/rl/mcts.py
Class Name: MCTS
Method Name: fit