()
| 120 | |
| 121 | |
| 122 | def test_anova(): |
| 123 | np_args = [i * np.random.random(size=(30,)) for i in range(4)] |
| 124 | da_args = [da.from_array(x, chunks=10) for x in np_args] |
| 125 | |
| 126 | result = dask.array.stats.f_oneway(*da_args) |
| 127 | expected = scipy.stats.f_oneway(*np_args) |
| 128 | |
| 129 | assert allclose(result.compute(), expected) |
| 130 | |
| 131 | |
| 132 | @pytest.mark.parametrize( |