Permalink
Browse files

P3K : Replaced / by //

  • Loading branch information...
smoitra87 authored and GaelVaroquaux committed Mar 14, 2012
1 parent ad66a25 commit 66ceb0521a3ac36317ea8c3501afa972690f637b
Showing with 3 additions and 3 deletions.
  1. +3 −3 sklearn/linear_model/tests/test_sgd.py
@@ -423,7 +423,7 @@ def test_partial_fit_exception(self):
clf.partial_fit(X3, Y3)
def test_partial_fit_binary(self):
- third = X.shape[0] / 3
+ third = X.shape[0] // 3
clf = self.factory(alpha=0.01)
classes = np.unique(Y)
@@ -442,7 +442,7 @@ def test_partial_fit_binary(self):
assert_array_equal(y_pred, true_result)
def test_partial_fit_multiclass(self):
- third = X2.shape[0] / 3
+ third = X2.shape[0] // 3
clf = self.factory(alpha=0.01)
classes = np.unique(Y2)
@@ -599,7 +599,7 @@ def test_elasticnet_convergence(self):
err_msg=err_msg)
def test_partial_fit(self):
- third = X.shape[0] / 3
+ third = X.shape[0] // 3
clf = self.factory(alpha=0.01)
clf.partial_fit(X[:third], Y[:third])

0 comments on commit 66ceb05

Please sign in to comment.