Skip to content

Commit

Permalink
[doc] Fix parameter typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Nov 27, 2024
1 parent 08c38da commit 989d379
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ will use assigned feature names, for example
```julia
julia> df = DataFrame(randn(10,3), ["kirk", "spock", "bones"])
10×3 DataFrame
Row │ kirk spock bones
│ Float64 Float64 Float64
Row │ kirk spock bones
│ Float64 Float64 Float64
─────┼───────────────────────────────────
10.663934 -0.419345 -0.489801
21.19064 0.420935 -0.321852
Expand Down Expand Up @@ -225,5 +225,5 @@ X = (x1=cu(randn(1000)), x2=cu(randn(1000)))
dm = DMatrix(X, y)
XGBoost.isgpu(dm) # true

xgboost((X, y), num_rounds=10) # no need to use `DMatrix`
xgboost((X, y), num_round=10) # no need to use `DMatrix`
```

0 comments on commit 989d379

Please sign in to comment.