Skip to content

Last dask fixes - #110

Merged
asmeurer merged 5 commits into
data-apis:mainfrom
lithomas1:last-dask-fixes
Mar 18, 2024
Merged

asmeurer merged 5 commits into
data-apis:mainfrom
lithomas1:last-dask-fixes

Conversation

@lithomas1

Copy link
Copy Markdown
Contributor

No description provided.

if full_matrices:
raise ValueError("full_matrics=True is not supported by dask.")
return da.linalg.svd(x, **kwargs)
return da.linalg.svd(x, coerce_signs=False, **kwargs)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed sign dask will do a svd_flip on the data otherwise, which will make signs differ from numpy/scipy.

@lithomas1
lithomas1 marked this pull request as ready for review March 12, 2024 02:16
obj = np.asarray(obj).copy()
#print(obj)
return xp.array(obj, dtype=dtype, **copy_kwargs)
return xp.array(obj, copy=True, dtype=dtype)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I reverted back to the original changes here (before my dask PR), but it'd be good to make sure.

@lithomas1

Copy link
Copy Markdown
Contributor Author

cc @asmeurer

(This should be ready, but I'd like to test on what I have with scikit-learn again, to catch any bugs)

@lithomas1

Copy link
Copy Markdown
Contributor Author

I've verified that the fixes here don't break scikit-learn.

@lithomas1

Copy link
Copy Markdown
Contributor Author

ping @asmeurer

Comment thread dask-xfails.txt
# (I think the test is not forcing the op to be computed?)
array_api_tests/test_creation_functions.py::test_linspace

# out.shape=(2,) but should be (1,)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an upstream issue for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet - but I'll followup with dask

(I haven't been able to get this down to a MRE yet)

@asmeurer
asmeurer merged commit 57d3c5a into data-apis:main Mar 18, 2024
@asmeurer asmeurer mentioned this pull request Mar 18, 2024
@lithomas1
lithomas1 deleted the last-dask-fixes branch March 18, 2024 21:57
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.

2 participants