10000 Update plot_manifold_sphere.py · Reddragonemperor58/scikit-learn@0e1e878 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e1e878

Browse files
Update plot_manifold_sphere.py
Related to scikit-learn#24876 What does this implement/fix? Explain your changes. Fix FutureWarning in manifold/plot_manifold_sphere.html /home/runner/work/scikit-learn/scikit-learn/sklearn/manifold/_mds.py:299: FutureWarning: The default value of `normalized_stress` will change to `'auto'` in version 1.4. To suppress this warning, manually set the value of `normalized_stress`. by explicit passing normalized_stress="auto"
1 parent 74ddf01 commit 0e1e878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/manifold/plot_manifold_sphere.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111

112112
# Perform Multi-dimensional scaling.
113113
t0 = time()
114-
mds = manifold.MDS(2, max_iter=100, n_init=1)
114+
mds = manifold.MDS(2, max_iter=100, n_init=1,normalized_stress="auto",)
115115
trans_data = mds.fit_transform(sphere_data).T
116116
t1 = time()
117117
print("MDS: %.2g sec" % (t1 - t0))

0 commit comments

Comments
 (0)
0