Please Help : TypeError: The `like` argument must be an array-like that implements the `__array_function__` protocol

Running this on a local host : Text Vectorization Pipeline — Dask Examples documentation

I am getting this error : TypeError: The like argument must be an array-like that implements the __array_function__ protocol.

  • on the pipe.predict line

Can anyone please help?

That’s a bug in dask-ml. There was a recent change to that section of the code that apparently doesn’t handle this case correctly.

It might also be a version issue with one of the dependencies (numpy and sparse I think).

Can you report this on the dask-ml issue tracker on GutHub?

Edit: Incremental.predict failing for scipy.sparse input · Issue #888 · dask/dask-ml · GitHub

1 Like

Thanks for opening the issue in and releasing the fix @TomAugspurger! Looks like you should now be able to resolve this by upgrading @soumyadasgupta