d8caeaaa2548c8da2501641d868b18184c7a41f3,benchmarks/benchmarks/go_benchmark_functions/go_funcs_P.py,PermFunction02,fun,#PermFunction02#Any#,370

Before Change


        self.nfev += 1

        b = 10
        outer = 0
        j = arange(1, self.N + 1)
        for k in range(1, self.N + 1):
            inner = (j + b) * (x[j - 1] ** k - (1. / j) ** k)
            outer += sum(inner ** 2)
        return outer


class Pinter(Benchmark):

After Change



        b = 10
        k = atleast_2d(arange(self.N) + 1).T
        j = atleast_2d(arange(self.N) + 1)
        s = (j + b) * (x ** k - (1. / j) ** k)
        return sum((sum(s, axis=1) ** 2))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: scipy/scipy
Commit Name: d8caeaaa2548c8da2501641d868b18184c7a41f3
Time: 2015-11-09
Author: andyfaff@gmail.com
File Name: benchmarks/benchmarks/go_benchmark_functions/go_funcs_P.py
Class Name: PermFunction02
Method Name: fun


Project Name: scikit-learn-contrib/DESlib
Commit Name: 44bdf9be3b913a1a0e90115e45edbee192d01b90
Time: 2018-03-31
Author: rafaelmenelau@gmail.com
File Name: deslib/des/probabilistic.py
Class Name: Probabilistic
Method Name: estimate_competence


Project Name: scipy/scipy
Commit Name: d8caeaaa2548c8da2501641d868b18184c7a41f3
Time: 2015-11-09
Author: andyfaff@gmail.com
File Name: benchmarks/benchmarks/go_benchmark_functions/go_funcs_P.py
Class Name: PermFunction01
Method Name: fun