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
I implemented the make_s_curve function and corresponding tests for it in #967.
However, one of the tests is failing consistently, even though I have verified the values in the outputs and the computation graph. Appreciate any feedback or suggestions on how to resolve this issue.
The test that failed.
@pytest.mark.parametrize("generator", [dask_ml.datasets.make_blobs,dask_ml.datasets.make_classification,dask_ml.datasets.make_counts,dask_ml.datasets.make_regression,dask_ml.datasets.make_s_curve, ],)deftest_deterministic(generator, scheduler):
a, t=generator(chunks=100, random_state=10)
b, u=generator(chunks=100, random_state=10)
assert_eq(a, b)
assert_eq(t, u)
Traceback (most recent call last):
File "/Users/dask_mltest.py", line 30, in <module>
assert_eq(a, b)
File "/Users/venv/lib/python3.9/site-packages/dask/array/utils.py", line 304, in assert_eq
a, adt, a_meta, a_computed = _get_dt_meta_computed(
File "/Users/venv/lib/python3.9/site-packages/dask/array/utils.py", line 259, in _get_dt_meta_computed
_check_dsk(x.dask)
File "/Users/venv/lib/python3.9/site-packages/dask/array/utils.py", line 210, in _check_dsk
assert not non_one, non_one
AssertionError: {('uniform-c022afab3445a4ac294ad46da60634e2', 0): 2}
The text was updated successfully, but these errors were encountered:
Thanks. It might be a while before I can look at this.
_check_dsk is verifying things about your task graph. It looks like this is saying you have multiple layers that use the same key. I'm not sure if you're making your own layers / keys, but if you are you'll want to use dask.base.tokenize on all the arguments going into whatever that function is.
Hi guys,
I implemented the make_s_curve function and corresponding tests for it in #967.
However, one of the tests is failing consistently, even though I have verified the values in the outputs and the computation graph. Appreciate any feedback or suggestions on how to resolve this issue.
The test that failed.
Environment:
Dask version: 2023.3.2
Dask_ml versuib: 2022.5.27
Python version: 3.10.9
Operating System: OSX
Install method (conda, pip, source): pip
Reproducible example
Traceback
The text was updated successfully, but these errors were encountered: