593fd867a2aba94d7319b7a87662abdc74bf3d2d,mlxtend/classifier/adaline.py,Adaline,fit,#Adaline#Any#Any#Any#,63

Before Change


            self.init_time_ = time()
            for i in range(self.epochs):
                if self.minibatches > 1:
                    X, y = self._shuffle(X, y)

                minis = np.array_split(n_idx, self.minibatches)
                for idx in minis:
                    y_val = self._activation(X[idx])

After Change


        self.cost_ = []

        // random seed for shuffling
        if self.random_seed:
            np.random.seed(self.random_seed)

        if self.minibatches is None:
            self.w_ = self._normal_equation(X, y)

        // Gradient descent or stochastic gradient descent learning
        else:
            n_idx = list(range(y.shape[0]))
            // skip shuffling if gradient descent
            if self.minibatches > 1:
                n_idx = np.random.permutation(n_idx)
            self.init_time_ = time()
            for i in range(self.epochs):
                minis = np.array_split(n_idx, self.minibatches)
                for idx in minis:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 11

Instances


Project Name: rasbt/mlxtend
Commit Name: 593fd867a2aba94d7319b7a87662abdc74bf3d2d
Time: 2016-03-10
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/adaline.py
Class Name: Adaline
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: 593fd867a2aba94d7319b7a87662abdc74bf3d2d
Time: 2016-03-10
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/adaline.py
Class Name: Adaline
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: 593fd867a2aba94d7319b7a87662abdc74bf3d2d
Time: 2016-03-10
Author: mail@sebastianraschka.com
File Name: mlxtend/regressor/linear_regression.py
Class Name: LinearRegression
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: 1d4d8c2817e726c178c3d1d52ff9cff33b5e27b2
Time: 2016-03-16
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/adaline.py
Class Name: Adaline
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: 1d4d8c2817e726c178c3d1d52ff9cff33b5e27b2
Time: 2016-03-16
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/logistic_regression.py
Class Name: LogisticRegression
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: 1d4d8c2817e726c178c3d1d52ff9cff33b5e27b2
Time: 2016-03-16
Author: mail@sebastianraschka.com
File Name: mlxtend/regressor/linear_regression.py
Class Name: LinearRegression
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: 593fd867a2aba94d7319b7a87662abdc74bf3d2d
Time: 2016-03-10
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/logistic_regression.py
Class Name: LogisticRegression
Method Name: fit