From a87fa2fe3a01d9e5c7da93e521dc56c9869de02d Mon Sep 17 00:00:00 2001 From: ExpandingMan Date: Fri, 13 Jan 2023 17:51:23 -0500 Subject: [PATCH] disable parameter validation by default --- Project.toml | 2 +- src/MLJXGBoostInterface.jl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 4ad91b8..0ca7b93 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MLJXGBoostInterface" uuid = "54119dfa-1dab-4055-a167-80440f4f7a91" authors = ["Anthony D. Blaom "] -version = "0.3.4" +version = "0.3.5" [deps] MLJModelInterface = "e80e1ace-859a-464e-9ed9-23947d8ae3ea" diff --git a/src/MLJXGBoostInterface.jl b/src/MLJXGBoostInterface.jl index bf4c152..d125ad5 100644 --- a/src/MLJXGBoostInterface.jl +++ b/src/MLJXGBoostInterface.jl @@ -92,6 +92,9 @@ function modelexpr(name::Symbol, absname::Symbol, obj::AbstractString, objvalida nthread::Int = Base.Threads.nthreads()::(_ ≥ 0) importance_type::String = "gain" seed::Union{Int,Nothing} = nothing # nothing will use built in default + # this should probably be fixed so that we don't pass invalid parameters, + # but in the meantime, let's just disable checking + validate_parameters::Bool = false end end