You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Isomap doesn't actually support NearestNeighbors as input to .fit #13596
ValueError: Expected 2D array, got scalar array instead:
array=NearestNeighbors(algorithm='auto', leaf_size=30,
metric=<function isomap_distance at 0x7fa0638c9488>,
metric_params=None, n_jobs=None, n_neighbors=5, p=2, radius=1.0).
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
Activity
jnothman commentedon Apr 9, 2019
I suspect you're right and the documentation is outdated, but please provide a fully reproducible code snippet to make it easy to confirm
TomDLT commentedon Apr 9, 2019
I also noticed this issue in #10463 (see issue 3).
It is (partially) fixed in #10482 as I removed the call to
check_arrayinIsomap._fit_transform.TomDLT commentedon Sep 18, 2019
Fixed in #10482