fb02935ed9bf290339ba2a59183691c691f913bd,benchmarks/benchmarks/go_benchmark_functions/go_funcs_E.py,Easom,fun,#Easom#Any#,40
Before Change
b = 0.2
c = 2 * pi
return (-a * exp(-b * sqrt(sum(x ** 2) / self.N))
- exp(sum(cos(c * x)) / self.N) + a + exp(1))
class Eckerle4(Benchmark):
r
After Change
def fun(self, x, *args):
self.nfev += 1
a = (x[0] - pi)**2 + (x[1] - pi)**2
return -cos(x[0]) * cos(x[1]) * exp(-a)
class Eckerle4(Benchmark):
r
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: scipy/scipy
Commit Name: fb02935ed9bf290339ba2a59183691c691f913bd
Time: 2015-11-09
Author: andyfaff@gmail.com
File Name: benchmarks/benchmarks/go_benchmark_functions/go_funcs_E.py
Class Name: Easom
Method Name: fun
Project Name: home-assistant/home-assistant
Commit Name: 2eb36c18bd4fc8db52b93cff763e67364109117f
Time: 2015-09-29
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/util/location.py
Class Name:
Method Name: distance
Project Name: open-mmlab/mmcv
Commit Name: ba059611d1c01bf2a91dd48e0db6598b135e4680
Time: 2020-04-19
Author: 40779233+ZwwWayne@users.noreply.github.com
File Name: mmcv/runner/hooks/lr_updater.py
Class Name: CosineLrUpdaterHook
Method Name: get_lr