f1dd50395b7021c5194b3bd8e5c2900873c91f35,mlxtend/classifier/perceptron.py,Perceptron,__init__,#Perceptron#,34
Before Change
self.eta = eta
self.epochs = epochs
if not learning in ("sgd", "gd", "perceptron"):
raise ValueError("learning must be sgd, gd, or perceptron")
self.learning = learning
def fit(self, X, y, init_weights=None):
Fit training data.
After Change
def __init__(self, eta=0.01, epochs=50, random_state=1):
np.random.seed(random_state)
self.eta = eta
self.epochs = epochs
def fit(self, X, y, init_weights=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: rasbt/mlxtend
Commit Name: f1dd50395b7021c5194b3bd8e5c2900873c91f35
Time: 2015-03-13
Author: se.raschka@me.com
File Name: mlxtend/classifier/perceptron.py
Class Name: Perceptron
Method Name: __init__
Project Name: tensorflow/minigo
Commit Name: 68e099aff7200ffff5f2edbca98a924a47ef8384
Time: 2019-04-22
Author: sethtroisi@google.com
File Name: ratings/cbt_ratings.py
Class Name:
Method Name: main
Project Name: facebookresearch/fastMRI
Commit Name: 05b2b1c02a8ce5f471877243ebebe5df876ccc37
Time: 2020-04-15
Author: tulliemurrell@gmail.com
File Name: models/unet/train_unet.py
Class Name:
Method Name: main