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
Copy file name to clipboardExpand all lines: doc/xgboost_on_sqlflow_design.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,9 @@ To explain the benefit of integrating XGBoost with SQLFlow, let us start with an
10
10
11
11
```sql
12
12
SELECT*FROM train_table
13
-
TRAIN xgboost.multi.softmax
13
+
TRAIN xgboost.gbtree
14
14
WITH
15
+
objective=multi:softmax,
15
16
train.num_round=2,
16
17
max_depth=2,
17
18
eta=1
@@ -29,10 +30,9 @@ USING my_xgb_model;
29
30
30
31
The the above examples,
31
32
-`my_xgb_model` names the trained model.
32
-
-`xgboost.multi.softmax` is the model spec, where
33
-
- the prefix `xgboost.` tells the model is a XGBoost one, but not a Tensorflow model, and
34
-
-`multi.softmax` names an [XGBoost learning task](https://xgboost.readthedocs.io/en/latest/parameter.html#learning-task-parameters).
35
-
- In the `WITH` clause,
33
+
-`xgboost.gbtree` is the model name, to use a different model provided by XGBoost, use `xgboost.gblinear` or `xgboost.dart`, see: [here](https://xgboost.readthedocs.io/en/latest/parameter.html#general-parameters) for details.
34
+
- In the `WITH` clause,
35
+
- objective names an [XGBoost learning task](https://xgboost.readthedocs.io/en/latest/parameter.html#learning-task-parameters)
36
36
- keys with the prefix `train.` identifies parameters of XGBoost API [`xgboost.train`](https://xgboost.readthedocs.io/en/latest/python/python_api.html#xgboost.train), and
37
37
- keys without any prefix identifies [XGBoost Parameters](https://xgboost.readthedocs.io/en/latest/parameter.html) except the `objective` parameter, which was specified by the identifier after the keyword `TRAIN`, as explained above.
0 commit comments