Browse files

FIX: doctests on buildbot

  • Loading branch information...
1 parent 5e8d845 commit f8e578dabf830b45c12b0ef6d55a1398f7644b1a @ogrisel ogrisel committed Aug 24, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 doc/modules/linear_model.rst
  2. +2 −2 scikits/learn/decomposition/nmf.py
View
4 doc/modules/linear_model.rst
@@ -135,10 +135,10 @@ as GridSearchCV except that it defaults to Generalized Cross-Validation
>>> from scikits.learn import linear_model
>>> clf = linear_model.RidgeCV(alphas=[0.1, 1.0, 10.0])
- >>> clf.fit([[0, 0], [0, 0], [1, 1]], [0, .1, 1])
+ >>> clf.fit([[0, 0], [0, 0], [1, 1]], [0, .1, 1]) # doctest: +SKIP
RidgeCV(alphas=[0.1, 1.0, 10.0], cv=None, fit_intercept=True, loss_func=None,
normalize=False, score_func=None)
- >>> clf.best_alpha # doctest: +ELLIPSIS
+ >>> clf.best_alpha # doctest: +SKIP
0.1...
.. topic:: References
View
4 scikits/learn/decomposition/nmf.py
@@ -293,7 +293,7 @@ class ProjectedGradientNMF(BaseEstimator, TransformerMixin):
>>> X = np.array([[1,1], [2, 1], [3, 1.2], [4, 1], [5, 0.8], [6, 1]])
>>> from scikits.learn.decomposition import ProjectedGradientNMF
>>> model = ProjectedGradientNMF(n_components=2, init=0)
- >>> model.fit(X) #doctest: +ELLIPSIS
+ >>> model.fit(X) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
ProjectedGradientNMF(beta=1, eta=0.1,
init=<mtrand.RandomState object at 0x...>, max_iter=200,
n_components=2, nls_max_iter=2000, sparseness=None, tol=0.0001)
@@ -304,7 +304,7 @@ class ProjectedGradientNMF(BaseEstimator, TransformerMixin):
0.00746...
>>> model = ProjectedGradientNMF(n_components=2, init=0,
... sparseness='components')
- >>> model.fit(X) #doctest: +ELLIPSIS
+ >>> model.fit(X) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
ProjectedGradientNMF(beta=1, eta=0.1,
init=<mtrand.RandomState object at 0x...>, max_iter=200,
n_components=2, nls_max_iter=2000, sparseness='components',

0 comments on commit f8e578d

Please sign in to comment.