Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b42048

Browse files
author
Fabian Pedregosa
committed
Some more doctest fixes for sklear.test()
1 parent ab4098e commit 8b42048

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/linear_model/least_angle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ class Lars(LinearModel):
351351
>>> clf.fit([[-1, 1], [0, 0], [1, 1]], [-1.1111, 0, -1.1111]) # doctest: +ELLIPSIS
352352
Lars(eps=..., fit_intercept=True, n_nonzero_coefs=1,
353353
normalize=True, overwrite_X=False, precompute='auto', verbose=False)
354-
>>> print clf.coef_ # doctest: +ELLIPSIS
355-
[ 0. ... -1.1111...]
354+
>>> print clf.coef_ # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
355+
[ 0. -1.11...]
356356
357357
References
358358
----------
@@ -900,8 +900,8 @@ class LassoLarsIC(LassoLars):
900900
LassoLarsIC(criterion='bic', eps=..., fit_intercept=True,
901901
max_iter=500, normalize=True, overwrite_X=False, precompute='auto',
902902
verbose=False)
903-
>>> print clf.coef_ # doctest: +ELLIPSIS
904-
[ 0. ... -1.1111...]
903+
>>> print clf.coef_ # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE
904+
[ 0. -1.11...]
905905
906906
References
907907
----------

0 commit comments

Comments
 (0)