5ab90a008e1e5288ccdae067a38e00a044608948,General_Deep_Q_RL/agent.py,NeuralAgent,run,#NeuralAgent#,123

Before Change



    def run(self, nEpochs, epochLength):
        for c in self._controllers: c.OnStart(self)
        for _ in range(nEpochs):
            if self._mode != -1:
                while self._modeEpochsLength > 0:
                    self._modeEpochsLength = self._runEpisode(self._modeEpochsLength)
            else:
                length = epochLength
                while length > 0:
                    length = self._runEpisode(length)

            for c in self._controllers: c.OnEpochEnd(self)
            
        for c in self._controllers: c.OnEnd(self)

    def _runEpisode(self, maxSteps):
        self._inEpisode = True

After Change



    def run(self, nEpochs, epochLength):
        for c in self._controllers: c.OnStart(self)
        i = 0
        while i < nEpochs:
            if self._mode != -1:
                while self._modeEpochsLength > 0:
                    self._modeEpochsLength = self._runEpisode(self._modeEpochsLength)
            else:
                length = epochLength
                while length > 0:
                    length = self._runEpisode(length)
                i += 1

            for c in self._controllers: c.OnEpochEnd(self)
            
        for c in self._controllers: c.OnEnd(self)

    def _runEpisode(self, maxSteps):
        self._inEpisode = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: VinF/deer
Commit Name: 5ab90a008e1e5288ccdae067a38e00a044608948
Time: 2016-02-16
Author: davidtaralla@gmail.com
File Name: General_Deep_Q_RL/agent.py
Class Name: NeuralAgent
Method Name: run


Project Name: pyprob/pyprob
Commit Name: ecd656578d31171683e7928477132e75348317d1
Time: 2020-08-06
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/model.py
Class Name: Model
Method Name: _traces


Project Name: tensorflow/tpu
Commit Name: 71900d314ad4e503f80e67b6a67be42c8b92f9ee
Time: 2020-05-12
Author: pengchong@google.com
File Name: models/official/detection/executor/tpu_executor.py
Class Name: TpuExecutor
Method Name: evaluate


Project Name: pyprob/pyprob
Commit Name: ecd656578d31171683e7928477132e75348317d1
Time: 2020-08-06
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/model.py
Class Name: Model
Method Name: posterior