364625b410d7978ec6837d57d4057c9fc6afde88,mlxtend/classifier/tests/test_logistic_regression.py,,test_l2_regularization_sgd,#,61
Before Change
expect_weights = np.array([-2.73e-04, 2.40e-01, 3.53e-01])
np.testing.assert_almost_equal(lr.w_, expect_weights, 2)
acc = sum(y_pred == y) / float(len(y))
assert(acc == 0.97)
After Change
np.testing.assert_almost_equal(lr.w_, expect_weights, 2)
y_pred = lr.predict(X)
acc = np.sum(y == y_pred, axis=0) / float(X.shape[0])
assert acc == 0.97, "Acc: %s" % acc
def test_ary_persistency_in_shuffling():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: rasbt/mlxtend
Commit Name: 364625b410d7978ec6837d57d4057c9fc6afde88
Time: 2016-03-12
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/tests/test_logistic_regression.py
Class Name:
Method Name: test_l2_regularization_sgd
Project Name: rasbt/mlxtend
Commit Name: 15b8e291b4f100036059013106d0a68dd6ddbf7b
Time: 2016-03-16
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/tests/test_logistic_regression.py
Class Name:
Method Name: test_l2_regularization_sgd
Project Name: geekcomputers/Python
Commit Name: 3dfdfaa6db730f66bdff5155320d4c4ee5d5b29c
Time: 2020-09-20
Author: markhappy200@gmail.com
File Name: EncryptionTool.py
Class Name:
Method Name: readAndDecrypt