Skip to content
Snippets Groups Projects
Commit c1e56387 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

Merge branch 'fix-doctest' into 'master'

Fix the doctest of xarray failing on python 3.8

See merge request !100
parents 4041da48 c9a1a905
No related branches found
No related tags found
1 merge request!100Fix the doctest of xarray failing on python 3.8
Pipeline #63248 passed
......@@ -229,7 +229,7 @@ def test_dataset_pipeline_with_dask_ml():
scaler = dask_ml.preprocessing.StandardScaler()
pca = dask_ml.decomposition.PCA(n_components=3, random_state=0)
clf = SGDClassifier(random_state=0, loss="log", penalty="l2", tol=1e-3)
clf = SGDClassifier(random_state=0, loss="log_loss", penalty="l2", tol=1e-3)
clf = dask_ml.wrappers.Incremental(clf, scoring="accuracy")
iris_ds = _build_iris_dataset(shuffle=True)
......
......@@ -420,7 +420,7 @@ provide dask-ml estimators, set ``input_dask_array`` as ``True``.
>>> # construct the estimators
>>> scaler = dask_ml.preprocessing.StandardScaler()
>>> pca = dask_ml.decomposition.PCA(n_components=3, random_state=0)
>>> clf = SGDClassifier(random_state=0, loss='log', penalty='l2', tol=1e-3)
>>> clf = SGDClassifier(random_state=0, loss='log_loss', penalty='l2', tol=1e-3)
>>> clf = dask_ml.wrappers.Incremental(clf, scoring="accuracy")
>>> pipeline = mario.xr.DatasetPipeline(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment