Permalink
Browse files

MISC: Fix example to adjust to eps -> tol

  • Loading branch information...
GaelVaroquaux committed Mar 2, 2011
1 parent ea51378 commit 21175e3629cc0c894efa10e729ae79597f4c206e
Showing with 2 additions and 2 deletions.
  1. +1 −1 examples/document_classification_20newsgroups.py
  2. +1 −1 examples/linear_model/plot_logistic_path.py
@@ -165,7 +165,7 @@ def benchmark(clf):
print "%s penalty" % penalty.upper()
# Train Liblinear model
liblinear_results = benchmark(LinearSVC(loss='l2', penalty=penalty, C=1000,
- dual=False, eps=1e-3))
+ dual=False, tol=1e-3))
# Train SGD model
sgd_results = benchmark(SGDClassifier(alpha=.0001, n_iter=50,
@@ -35,7 +35,7 @@
print "Computing regularization path ..."
start = datetime.now()
-clf = linear_model.LogisticRegression(C=1.0, penalty='l1', eps=1e-6)
+clf = linear_model.LogisticRegression(C=1.0, penalty='l1', tol=1e-6)
coefs_ = [clf.fit(X, y, C=1.0/alpha).coef_.ravel().copy() for alpha in alphas]
print "This took ", datetime.now() - start

0 comments on commit 21175e3

Please sign in to comment.