Skip to content

Commit 2ad6ef7

Browse files
authored
Described data copy cases (#2698)
1 parent cda899f commit 2ad6ef7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/sources/input-types.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,14 @@ like `Polars <https://pola.rs>`__.
3939
Extension currently does not offer accelerated routines for input types not listed
4040
here - when receiving an unsupported class, estimators will fall back to stock Scikit-Learn to
4141
handle it, so make sure to convert them to a supported type when using Extension.
42+
43+
.. warning::
44+
In some cases data passed to estimators might be copied/duplicated during calls to methods such as fit/predict.
45+
The affected cases are listed below.
46+
47+
- Non-contiguous NumPy array - i.e. where strides are wider than one element across both rows and columns
48+
- For SciPy CSR matrix / CSR array index array is always copied.
49+
- Heterogeneous NumPy array
50+
- If SYCL queue is provided for device without `float64` support but data are `float64`, data are copied with reduced precision.
51+
- If :ref:`Array API <array_api>` is not enabled then data from GPU devices are always copied to the host device and then result table
52+
(for applicable methods) is copied to the source device.

0 commit comments

Comments
 (0)