Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompatHelper: bump compat for EvoTrees to 0.16 for package test, (keep existing compat) #93

Merged
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MCMCDiagnosticTools"
uuid = "be115224-59cd-429b-ad48-344e309966f0"
authors = ["David Widmann"]
version = "0.3.6"
version = "0.3.7"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Aqua = "0.6.5, 0.7"
Distributions = "0.25"
DynamicHMC = "3"
EvoTrees = "0.14.7, 0.15"
EvoTrees = "0.14.7, 0.15, 0.16"
FFTW = "1.1"
LogDensityProblems = "0.12, 1, 2"
LogExpFunctions = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions test/rstar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ end
@testset "samples input type: $wrapper" for wrapper in [Vector, Array, Tables.table]
# In practice, probably you want to use EvoTreeClassifier with early stopping
classifiers = (
EvoTreeClassifier(; nrounds=1_000, eta=0.1),
Pipeline(EvoTreeClassifier(; nrounds=1_000, eta=0.1); operation=predict_mode),
EvoTreeClassifier(; nrounds=1_000, eta=0.01),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it clear from the changelog why the parameters have to be changed? Or was the previous choice non-standard?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not from the changelog, but the failures seem to come from Evovest/EvoTrees.jl#250 changing defaults from (max_depth = 5, nbins=32) to (max_depth=6, nbins=64). Reverting either of these to the former default causes the tests to pass again.

Looks like a lot of parameter combinations cause the tests to pass, but just barely. Perhaps a better approach is to increase the rtol.

Pipeline(EvoTreeClassifier(; nrounds=1_000, eta=0.01); operation=predict_mode),
DecisionTreeClassifier(),
SVC(),
XGBoostClassifiers...,
Expand Down