999d2ff75431496c25c7967b990e6b7fc09bb858,chaospy/spectral.py,,fit_quadrature,#Any#Any#Any#Any#Any#Any#,84
Before Change
nodes = numpy.asfarray(nodes)
weights = numpy.asfarray(weights)
if callable(solves):
solves = [solves(node) for node in nodes.T]
solves = numpy.asfarray(solves)
shape = solves.shape
solves = solves.reshape(weights.size, int(solves.size/weights.size))
After Change
coeffs = coeffs.reshape(len(coeffs), *shape)
approx_model = numpoly.sum(orth*coeffs.T, -1).T
choices = {0: approx_model,
1: (approx_model, coeffs),
2: (approx_model, coeffs, ovals)}
return choices[retall]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: jonathf/chaospy
Commit Name: 999d2ff75431496c25c7967b990e6b7fc09bb858
Time: 2020-11-03
Author: jonathf@users.noreply.github.com
File Name: chaospy/spectral.py
Class Name:
Method Name: fit_quadrature
Project Name: matthewwithanm/django-imagekit
Commit Name: b0b466618f669f87ecfe66b9dd655415ba88ed83
Time: 2012-10-17
Author: m@tthewwithanm.com
File Name: imagekit/templatetags/imagekit_tags.py
Class Name: SpecNode
Method Name: render
Project Name: mne-tools/mne-python
Commit Name: cd3f4fb2fe42d99d3eaa2d6a7d1dc56e08d69749
Time: 2019-04-10
Author: alexandre.gramfort@m4x.org
File Name: mne/epochs.py
Class Name: BaseEpochs
Method Name: _compute_aggregate