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
This page is a support matrix for various input types.
6
+
7
+
.. _py-data:
8
+
9
+
*******
10
+
Markers
11
+
*******
12
+
13
+
- T: Supported.
14
+
- F: Not supported.
15
+
- NE: Invalid type for the use case. For instance, :py:class:`pandas.Series` can not be multi-target label.
16
+
- NPA: Support with the help of numpy array.
17
+
- AT: Support with the help of arrow table.
18
+
- CPA: Support with the help of cupy array.
19
+
- SciCSR: Support with the help of scipy sparse CSR :py:class:`scipy.sparse.csr_matrix`. The conversion to scipy CSR may or may not be possible. Raise a type error if conversion fails.
20
+
- FF: We can look forward to having its support in recent future if requested.
21
+
- empty: To be filled in.
22
+
23
+
************
24
+
Table Header
25
+
************
26
+
- `X` means predictor matrix.
27
+
- Meta info: label, weight, etc.
28
+
- Multi Label: 2-dim label for multi-target.
29
+
- Others: Anything else that we don't list here explicitly including formats like `lil`, `dia`, `bsr`. XGBoost will try to convert it into scipy csr.
@@ -32,9 +32,9 @@ To verify your installation, run the following in Python:
32
32
33
33
Data Interface
34
34
--------------
35
-
The XGBoost Python module is able to load data from many different types of data format including both CPU and GPU data structures. For a complete list of supported data types, please reference the :ref:`py-data`. For a detailed description of text input formats, please visit :doc:`/tutorials/input_format`.
35
+
The XGBoost Python module is able to load data from many different types of data format including both CPU and GPU data structures. For a comprehensive list of supported data types, please reference the :doc:`/python/data_input`. For a detailed description of text input formats, please visit :doc:`/tutorials/input_format`.
36
36
37
-
The input data is stored in a :py:class:`DMatrix <xgboost.DMatrix>` object. For the sklearn estimator interface, a :py:class:`DMatrix` or a :py:class:`QuantileDMatrix` is created depending on the chosen algorithm and the input, see the sklearn API reference for details. We will illustrate some of the basic input types with the ``DMatrix`` here.
37
+
The input data is stored in a :py:class:`DMatrix <xgboost.DMatrix>` object. For the sklearn estimator interface, a :py:class:`DMatrix` or a :py:class:`QuantileDMatrix` is created depending on the chosen algorithm and the input, see the sklearn API reference for details. We will illustrate some of the basic input types using the ``DMatrix`` here.
38
38
39
39
* To load a NumPy array into :py:class:`DMatrix <xgboost.DMatrix>`:
40
40
@@ -59,11 +59,12 @@ The input data is stored in a :py:class:`DMatrix <xgboost.DMatrix>` object. For
0 commit comments