Skip to content

FIX ElasticNetCV doctest failure on ARM#13256

Merged
jnothman merged 1 commit intoscikit-learn:masterfrom
rth:arm-ElasticNetCV
Feb 25, 2019
Merged

FIX ElasticNetCV doctest failure on ARM#13256
jnothman merged 1 commit intoscikit-learn:masterfrom
rth:arm-ElasticNetCV

Conversation

@rth
Copy link
Copy Markdown
Member

@rth rth commented Feb 25, 2019

Related to #13036

This fixes a docstring failure on ARM 64 bit,

_______________________________________ [doctest] sklearn.linear_model.coordinate_descent.ElasticNetCV ________________________________________
1547     >>> from sklearn.datasets import make_regression
1548
1549     >>> X, y = make_regression(n_features=2, random_state=0)
1550     >>> regr = ElasticNetCV(cv=5, random_state=0)
1551     >>> regr.fit(X, y)  # doctest: +NORMALIZE_WHITESPACE
1552     ElasticNetCV(alphas=None, copy_X=True, cv=5, eps=0.001, fit_intercept=True,
1553            l1_ratio=0.5, max_iter=1000, n_alphas=100, n_jobs=None,
1554            normalize=False, positive=False, precompute='auto', random_state=0,
1555            selection='cyclic', tol=0.0001, verbose=0)
1556     >>> print(regr.alpha_) # doctest: +ELLIPSIS
Expected:
    0.1994727942696716
Got:
    0.19947279426967165

@jnothman jnothman merged commit 314686a into scikit-learn:master Feb 25, 2019
@rth rth deleted the arm-ElasticNetCV branch February 25, 2019 16:51
@rth rth added this to the 0.20.3 milestone Feb 25, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants