Skip to content

Commit

Permalink
Put (;) and compat back
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Nov 21, 2023
1 parent 2112c69 commit 101c090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ XGBoost = "009559a3-9522-5dbb-924b-0b6ed2b22bb9"
[compat]
MLJModelInterface = "1.5"
Tables = "1.0.5"
XGBoost = "2.3"
XGBoost = "2.0.1"
julia = "1.6"

[extras]
Expand Down
2 changes: 1 addition & 1 deletion src/MLJXGBoostInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function kwargs(model, verbosity, obj)
out = NamedTuple(n=>getfield(model, n) for n fn if !isnothing(getfield(model, n)))
out = merge(out, (silent=(verbosity 0),))
# watchlist is for log output, so override if it's default and verbosity ≤ 0
wl = (verbosity 0 && isnothing(model.watchlist)) ? Dict() : model.watchlist
wl = (verbosity 0 && isnothing(model.watchlist)) ? (;) : model.watchlist
if !isnothing(wl)
out = merge(out, (watchlist=wl,))
end
Expand Down

0 comments on commit 101c090

Please sign in to comment.