Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Oct 25, 2023
1 parent 5d4c1fc commit 8c0e369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/booster.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function Booster(cache::AbstractVector{<:DMatrix};
model_file::AbstractString="",
tree_method::Union{Nothing,AbstractString}=nothing,
validate_parameters::Bool=true,
thread=Threads.nthreads(),
nthread=Threads.nthreads(),
kw...
)
o = Ref{BoosterHandle}()
Expand All @@ -120,7 +120,7 @@ function Booster(cache::AbstractVector{<:DMatrix};
else
(tree_method=tree_method,)
end
setparams!(b; validate_parameters, thread, tm..., kw...)
setparams!(b; validate_parameters, nthread, tm..., kw...)
b
end
Booster(dm::DMatrix; kw...) = Booster([dm]; kw...)
Expand Down

0 comments on commit 8c0e369

Please sign in to comment.