Skip to content

Commit

Permalink
[doc] Fix data format (#10013)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleLLD authored Jan 30, 2024
1 parent 54b71c8 commit d9f4ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorials/dart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ Sample Script
import xgboost as xgb
# read in data
dtrain = xgb.DMatrix('demo/data/agaricus.txt.train')
dtest = xgb.DMatrix('demo/data/agaricus.txt.test')
dtrain = xgb.DMatrix('demo/data/agaricus.txt.train?format=libsvm')
dtest = xgb.DMatrix('demo/data/agaricus.txt.test?format=libsvm')
# specify parameters via map
param = {'booster': 'dart',
'max_depth': 5, 'learning_rate': 0.1,
Expand Down

0 comments on commit d9f4ab5

Please sign in to comment.