84bc8d341e5a0a0d0b20b8acda58a33d72a2c23a,sklearn/svm/_base.py,BaseLibSVM,fit,#BaseLibSVM#Any#Any#Any#,107

Before Change


                             " Input is a {}x{} matrix."
                             .format(X.shape[0], X.shape[1]))

        if sample_weight.shape[0] > 0 and sample_weight.shape[0] != X.shape[0]:
            raise ValueError("sample_weight and X have incompatible shapes: "
                             "%r vs %r\n"
                             "Note: Sparse matrices cannot be indexed w/"

After Change


                             "boolean masks (use `indices=True` in CV)."
                             % (sample_weight.shape, X.shape))

        kernel = "precomputed" if callable(self.kernel) else self.kernel

        if kernel == "precomputed":
            // unused but needs to be a float for cython code that ignores
            // it anyway
            self._gamma = 0.
        elif isinstance(self.gamma, str):
            if self.gamma == "scale":
                // var = E[X^2] - E[X]^2 if sparse
                X_var = ((X.multiply(X)).mean() - (X.mean()) ** 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: 84bc8d341e5a0a0d0b20b8acda58a33d72a2c23a
Time: 2020-02-01
Author: georgepf@gmail.com
File Name: sklearn/svm/_base.py
Class Name: BaseLibSVM
Method Name: fit


Project Name: analysiscenter/batchflow
Commit Name: 89f41f9280daceb58895f6a958c493f126db03bc
Time: 2019-12-05
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/eager_torch/layers/resize.py
Class Name: Combine
Method Name: __init__


Project Name: ray-project/ray
Commit Name: dc42abb2f5f7dd059cf6fac3eae2832931925573
Time: 2021-01-18
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/config_parser.py
Class Name:
Method Name: create_trial_from_spec