ab7bfeb252d0c9cbc4cd44a50f7757a53dbd7ecb,lightning/dual_cd.py,DualSVC,fit,#DualSVC#,65

Before Change


        Alpha = [_dual_cd(K, Y[:, i],
                          self.C, self.loss, self.max_iter, rs, self.tol,
                          precomputed_kernel=True, verbose=self.verbose)
                    for i in range(Y.shape[1])]
        self.dual_coef_ = np.array(Alpha) * Y.T
        // FIXME: can trim the model
        self.X_train_ = X

After Change


                             filter_params=True, n_jobs=self.n_jobs,
                             **self._kernel_params())
        self.dual_coef_ = np.zeros((n_vectors, n_samples), dtype=np.float64)
        for i in xrange(n_vectors):
            _dual_cd(self.dual_coef_[i], K, Y[:, i],
                     self.C, self.loss, self.max_iter, rs, self.tol,
                     precomputed_kernel=True, verbose=self.verbose)
        self.dual_coef_ *= Y.T
        // FIXME: can trim the model
        self.X_train_ = X
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: scikit-learn-contrib/lightning
Commit Name: ab7bfeb252d0c9cbc4cd44a50f7757a53dbd7ecb
Time: 2012-02-29
Author: mathieu@mblondel.org
File Name: lightning/dual_cd.py
Class Name: DualSVC
Method Name: fit


Project Name: scikit-learn-contrib/lightning
Commit Name: ab7bfeb252d0c9cbc4cd44a50f7757a53dbd7ecb
Time: 2012-02-29
Author: mathieu@mblondel.org
File Name: lightning/dual_cd.py
Class Name: DualLinearSVC
Method Name: fit


Project Name: UFAL-DSG/tgen
Commit Name: fb50688c503567c5db6207e45e2c5e2ee1ad33df
Time: 2014-08-25
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/features.py
Class Name:
Method Name: depth