Skip to content
This repository
Browse code

MISC: Fix example to adjust to eps -> tol

  • Loading branch information...
commit 21175e3629cc0c894efa10e729ae79597f4c206e 1 parent ea51378
Gael Varoquaux authored March 02, 2011
2  examples/document_classification_20newsgroups.py
@@ -165,7 +165,7 @@ def benchmark(clf):
165 165
     print "%s penalty" % penalty.upper()
166 166
     # Train Liblinear model
167 167
     liblinear_results = benchmark(LinearSVC(loss='l2', penalty=penalty, C=1000,
168  
-                                            dual=False, eps=1e-3))
  168
+                                            dual=False, tol=1e-3))
169 169
 
170 170
     # Train SGD model
171 171
     sgd_results = benchmark(SGDClassifier(alpha=.0001, n_iter=50,
2  examples/linear_model/plot_logistic_path.py
@@ -35,7 +35,7 @@
35 35
 
36 36
 print "Computing regularization path ..."
37 37
 start = datetime.now()
38  
-clf = linear_model.LogisticRegression(C=1.0, penalty='l1', eps=1e-6)
  38
+clf = linear_model.LogisticRegression(C=1.0, penalty='l1', tol=1e-6)
39 39
 coefs_ = [clf.fit(X, y, C=1.0/alpha).coef_.ravel().copy() for alpha in alphas]
40 40
 print "This took ", datetime.now() - start
41 41
 

0 notes on commit 21175e3

Please sign in to comment.
Something went wrong with that request. Please try again.