Skip to content

Commit

Permalink
FIX: doctests on buildbot
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Aug 24, 2011
1 parent 5e8d845 commit f8e578d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/modules/linear_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scikits/learn/decomposition/nmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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',
Expand Down

0 comments on commit f8e578d

Please sign in to comment.