364625b410d7978ec6837d57d4057c9fc6afde88,mlxtend/regressor/base.py,_BaseRegressor,_init_weights,#_BaseRegressor#,119
Before Change
if zero_init_weight:
w = np.zeros(shape)
else:
w = np.random.normal(loc=0.0, scale=1.0, size=shape)
return w.astype(dtype)
After Change
if zero_init_weight:
w = np.zeros(shape)
else:
w = coef * np.random.normal(loc=0.0, scale=1.0, size=shape)
return w.astype(dtype)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: rasbt/mlxtend
Commit Name: 364625b410d7978ec6837d57d4057c9fc6afde88
Time: 2016-03-12
Author: mail@sebastianraschka.com
File Name: mlxtend/regressor/base.py
Class Name: _BaseRegressor
Method Name: _init_weights
Project Name: rasbt/mlxtend
Commit Name: 15b8e291b4f100036059013106d0a68dd6ddbf7b
Time: 2016-03-16
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/base.py
Class Name: _BaseClassifier
Method Name: _init_weights
Project Name: rasbt/mlxtend
Commit Name: 364625b410d7978ec6837d57d4057c9fc6afde88
Time: 2016-03-12
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/base.py
Class Name: _BaseClassifier
Method Name: _init_weights
Project Name: rasbt/mlxtend
Commit Name: 15b8e291b4f100036059013106d0a68dd6ddbf7b
Time: 2016-03-16
Author: mail@sebastianraschka.com
File Name: mlxtend/regressor/base.py
Class Name: _BaseRegressor
Method Name: _init_weights