148a63df4c40c063e1aaf36b09a2057efd38daf9,hyperspy/models/model1d.py,Model1D,_jacobian,#Model1D#Any#Any#Any#,543

Before Change


                                mode="valid")
                            if parameter._twins:
                                for par in parameter._twins:
                                    if not callable(par.grad):
                                        raise ValueError(
                                            f"Analytical gradient not available for {par}. "
                                            "Consider using a numerical approximation for the gradient "
                                            "instead by calling `m.fit(grad="2-point")`."
                                        )
                                    np.add(par_grad, np.convolve(
                                        par.grad(
                                            self.convolution_axis),
                                        self.low_loss(self.axes_manager),

After Change


                                missing_gradients.append(par)

        if len(missing_gradients) > 0:
            pars = ", ".join(str(x) for x in missing_gradients)

            raise ValueError(
                f"Analytical gradient not available for {pars}. "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: hyperspy/hyperspy
Commit Name: 148a63df4c40c063e1aaf36b09a2057efd38daf9
Time: 2020-07-18
Author: tjof2@cam.ac.uk
File Name: hyperspy/models/model1d.py
Class Name: Model1D
Method Name: _jacobian


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: pavlin-policar/openTSNE
Commit Name: 1e15eeebbe3f9647f4a024ce9d44f5f6bb37b179
Time: 2018-06-22
Author: pavlin.g.p@gmail.com
File Name: tsne/tsne.py
Class Name: TSNE
Method Name: __init__