by hogu · 6y ago · 0 comments
if isinstance(x, ndarray):
...
elif isinstance(x, other_array):
...
In the most ideal case having the standard means that scientific libraries can support all conforming implementations by default. Then sklearn would automatically support cupy/numpy/dask/jax/mxnet/pytorch/tensorflow arrays. Multiply that by all the scientific libraries and the effect is pretty profound.No comments yet.