3df7d5da196aa61ffba07c483328f5c321d15867,scipy/optimize/_differentialevolution.py,DifferentialEvolutionSolver,_randtobest1exp,#DifferentialEvolutionSolver#Any#,473

Before Change


        return trial

    def _randtobest1exp(self, candidate):
        r1, r2, r3, r4, r5 = self.select_samples(candidate, 1, 1, 0, 0, 0)

        n = self.random_number_generator.randint(0, self.parameter_count)

        trial = np.copy(self.population[candidate])

After Change


        return trial

    def _randtobest1exp(self, candidate):
        r0, r1 = self._select_samples(candidate, 2)

        n = self.random_number_generator.randint(0, self.parameter_count)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 3df7d5da196aa61ffba07c483328f5c321d15867
Time: 2014-05-15
Author: andyfaff@gmail.com
File Name: scipy/optimize/_differentialevolution.py
Class Name: DifferentialEvolutionSolver
Method Name: _randtobest1exp


Project Name: scipy/scipy
Commit Name: 3df7d5da196aa61ffba07c483328f5c321d15867
Time: 2014-05-15
Author: andyfaff@gmail.com
File Name: scipy/optimize/_differentialevolution.py
Class Name: DifferentialEvolutionSolver
Method Name: _best1exp


Project Name: scipy/scipy
Commit Name: 3df7d5da196aa61ffba07c483328f5c321d15867
Time: 2014-05-15
Author: andyfaff@gmail.com
File Name: scipy/optimize/_differentialevolution.py
Class Name: DifferentialEvolutionSolver
Method Name: _randtobest1bin


Project Name: scipy/scipy
Commit Name: 3df7d5da196aa61ffba07c483328f5c321d15867
Time: 2014-05-15
Author: andyfaff@gmail.com
File Name: scipy/optimize/_differentialevolution.py
Class Name: DifferentialEvolutionSolver
Method Name: _best1bin