690c0eca63d7d8374f63b9393adeb56a49074b12,mushroom/utils/replay_memory.py,ReplayMemory,get,#ReplayMemory#Any#,116

Before Change


        for i in range(n_samples):
            while True:
                idx = np.random.randint(self.size)
                if self._last[idx - self._history_length:idx].any():
                    continue
                idxs[i] = idx
                break

After Change


        for i in range(n_samples):
            while True:
                idx = np.random.randint(self.size)
                if self._history_length > 1 and self._last[idx - self._history_length:idx].any():
                    continue
                idxs[i] = idx
                break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 690c0eca63d7d8374f63b9393adeb56a49074b12
Time: 2018-04-19
Author: carlo.deramo@gmail.com
File Name: mushroom/utils/replay_memory.py
Class Name: ReplayMemory
Method Name: get


Project Name: markovmodel/PyEMMA
Commit Name: d1de2f98ec8f851228e28bf28a0f800e90bd9bcf
Time: 2017-12-21
Author: m.scherer@fu-berlin.de
File Name: pyemma/msm/estimators/maximum_likelihood_msm.py
Class Name: AugmentedMarkovModel
Method Name: _newton_lagrange


Project Name: nipy/dipy
Commit Name: c2a9f7b0bf2e59293ba9182c33de18e9bc29a085
Time: 2015-03-12
Author: arokem@gmail.com
File Name: dipy/reconst/sfm.py
Class Name: SparseFascicleModel
Method Name: fit


Project Name: nicodv/kmodes
Commit Name: 02566e8d7f883f06221b60df9b87f971db6d9ca7
Time: 2018-03-03
Author: njdevos@gmail.com
File Name: kmodes/kmodes.py
Class Name:
Method Name: init_huang


Project Name: biotite-dev/biotite
Commit Name: 655073219ced6ed450ee20c6bfdeb42bea11b1bf
Time: 2020-12-22
Author: anter.jacob@gmail.com
File Name: src/biotite/structure/charges.py
Class Name:
Method Name: _get_parameters


Project Name: markovmodel/PyEMMA
Commit Name: 36f178c64c3b3bac471dfe1b695e827a781bd8bc
Time: 2017-12-21
Author: simols@hotmail.com
File Name: pyemma/msm/estimators/maximum_likelihood_msm.py
Class Name: AugmentedMarkovModel
Method Name: _newton_lagrange