cf6d258c003a5a5b5073830e73e4580aeaf71d45,tensorforce/core/agent.py,Agent,act,#Agent#Any#,87

Before Change


        action, self.next_internals = self.model.get_action(state=state, internals=self.internals)

        for name, exploration in self.exploration.items():
            if exploration is None:
                continue
            if self.actions_config[name].continuous:
                action[name] += exploration(episode=self.episode, timestep=self.timestep)
            else:
                if random() < exploration(episode=self.episode, timestep=self.timestep):

After Change


        // preprocessing
        for name, preprocessing in self.preprocessing.items():
            if preprocessing is not None:
                state[name] = preprocessing.process(state=state[name])

        // model action
        action, self.next_internal = self.model.get_action(state=state, internal=self.internal)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: reinforceio/tensorforce
Commit Name: cf6d258c003a5a5b5073830e73e4580aeaf71d45
Time: 2017-06-24
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/agent.py
Class Name: Agent
Method Name: act


Project Name: sentinel-hub/eo-learn
Commit Name: 5bb91bfefafbf9cc643aa1a3c7c4d8fdfec46e56
Time: 2018-08-08
Author: matej.aleksandrov@sinergise.com
File Name: ml_tools/eolearn/ml_tools/postprocessing.py
Class Name: PostprocessingTask
Method Name: execute


Project Name: reinforceio/tensorforce
Commit Name: ce961ed06c22bf7c1178162450a88174fb401c14
Time: 2017-11-25
Author: mi.schaarschmidt@gmail.com
File Name: tensorforce/models/model.py
Class Name: Model
Method Name: get_states