3df7d5da196aa61ffba07c483328f5c321d15867,scipy/optimize/_differentialevolution.py,DifferentialEvolutionSolver,_best2bin,#DifferentialEvolutionSolver#Any#,551
Before Change
return trial
def _best2bin(self, candidate):
r1, r2, r3, r4, r5 = self.select_samples(candidate, 1, 1, 1, 1, 0)
n = self.random_number_generator.randint(0, self.parameter_count)
trial = np.copy(self.population[candidate])
After Change
return trial
def _best2bin(self, candidate):
r0, r1, r2, r3 = self._select_samples(candidate, 4)
n = self.random_number_generator.randint(0, self.parameter_count)
trial = np.copy(self.population[candidate])
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 2
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: _best2bin
Project Name: scipy/scipy
Commit Name: 3df7d5da196aa61ffba07c483328f5c321d15867
Time: 2014-05-15
Author: andyfaff@gmail.com
File Name: scipy/optimize/tests/test__differential_evolution.py
Class Name: TestDifferentialEvolutionSolver
Method Name: test_select_samples
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: _rand1exp
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: _rand1bin
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: _rand2exp
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: _rand2bin
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: _best2exp