272f235fd8418eae67631d62051084eb363f781b,chaospy/quadrature/gauss_patterson.py,,quad_gauss_patterson,#Any#Any#,42

Before Change


        return abscissas, weights

    lower, upper = numpy.array(domain)
    lower = numpy.asarray(lower).flatten()
    upper = numpy.asarray(upper).flatten()

    if len(lower) > 1:

After Change


    lower, upper, order = numpy.broadcast_arrays(lower, upper, order)

    if lower.size > 1:
        values = [quad_gauss_patterson(order_, (lower_, upper_))
                  for order_, lower_, upper_ in zip(order, lower, upper)]

        abscissas = [value[0][0] for value in values]
        weights = [value[1] for value in values]
        abscissas = combine(abscissas).T
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jonathf/chaospy
Commit Name: 272f235fd8418eae67631d62051084eb363f781b
Time: 2020-11-05
Author: jonathf@users.noreply.github.com
File Name: chaospy/quadrature/gauss_patterson.py
Class Name:
Method Name: quad_gauss_patterson


Project Name: explosion/thinc
Commit Name: 29c3e05a7a8909ef4e182a016b9d2563dafac061
Time: 2016-12-28
Author: honnibal+gh@gmail.com
File Name: thinc/util.py
Class Name:
Method Name: score_model


Project Name: maxpumperla/elephas
Commit Name: d19a9299aeb39b531b8b62f5f982765a5dc54711
Time: 2021-01-31
Author: danielenricocahall@gmail.com
File Name: elephas/ml_model.py
Class Name: ElephasTransformer
Method Name: _transform