Skip to content

Commit a16368b

Browse files
committed
fix L1 test
bump version
1 parent 6300a8a commit a16368b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/core.jl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ y_train, y_eval = Y[i_train], Y[i_eval]
3030
nbins=16,
3131
lambda=0.5,
3232
gamma=0.1,
33-
eta=0.05,
33+
eta=0.1,
3434
max_depth=6,
3535
min_weight=1.0,
3636
rowsample=0.5,
@@ -63,7 +63,7 @@ end
6363
nrounds=100,
6464
lambda=0.5,
6565
gamma=0.1,
66-
eta=0.05,
66+
eta=0.1,
6767
max_depth=6,
6868
min_weight=1.0,
6969
rowsample=0.5,
@@ -96,7 +96,7 @@ end
9696
nrounds=100,
9797
lambda=0.5,
9898
gamma=0.1,
99-
eta=0.05,
99+
eta=0.1,
100100
max_depth=6,
101101
min_weight=1.0,
102102
rowsample=0.5,
@@ -129,7 +129,7 @@ end
129129
nrounds=100,
130130
lambda=0.5,
131131
gamma=0.1,
132-
eta=0.05,
132+
eta=0.1,
133133
max_depth=6,
134134
min_weight=1.0,
135135
rowsample=0.5,
@@ -164,7 +164,7 @@ end
164164
nbins=16,
165165
lambda=0.5,
166166
gamma=0.0,
167-
eta=0.05,
167+
eta=0.1,
168168
max_depth=6,
169169
min_weight=1.0,
170170
rowsample=0.5,
@@ -199,7 +199,7 @@ end
199199
nbins=16,
200200
lambda=0.5,
201201
gamma=0.0,
202-
eta=0.05,
202+
eta=0.1,
203203
max_depth=6,
204204
min_weight=1.0,
205205
rowsample=0.5,
@@ -232,7 +232,7 @@ end
232232
nrounds=100,
233233
lambda=0.5,
234234
gamma=0.1,
235-
eta=0.05,
235+
eta=0.1,
236236
max_depth=6,
237237
min_weight=1.0,
238238
rowsample=0.5,
@@ -266,7 +266,7 @@ end
266266
nbins=16,
267267
lambda=0.0,
268268
gamma=0.0,
269-
eta=0.05,
269+
eta=0.1,
270270
max_depth=6,
271271
min_weight=10.0,
272272
rowsample=0.5,
@@ -300,7 +300,7 @@ end
300300
nbins=16,
301301
lambda=0.0,
302302
gamma=0.0,
303-
eta=0.05,
303+
eta=0.1,
304304
max_depth=6,
305305
min_weight=10.0,
306306
rowsample=0.5,
@@ -333,7 +333,7 @@ end
333333
nbins=16,
334334
lambda=0.0,
335335
gamma=0.0,
336-
eta=0.05,
336+
eta=0.1,
337337
max_depth=6,
338338
min_weight=10.0,
339339
rowsample=0.5,
@@ -367,7 +367,7 @@ end
367367
nbins=16,
368368
lambda=0.5,
369369
gamma=0.1,
370-
eta=0.05,
370+
eta=0.1,
371371
max_depth=6,
372372
min_weight=1.0,
373373
rowsample=0.5,
@@ -446,10 +446,10 @@ end
446446
# check_args should throw an exception if the parameters are invalid
447447
@testset "check_parameter" begin
448448
# Valid case tests
449-
@test check_parameter(Float64, 1.5, 0.0, typemax(Float64), :lambda) == nothing
450-
@test check_parameter(Int, 5, 1, typemax(Int), :nrounds) == nothing
451-
@test check_parameter(Int, 1, 1, typemax(Int), :nrounds) == nothing
452-
@test check_parameter(Int, 1, 1, 1, :nrounds) == nothing
449+
@test check_parameter(Float64, 1.5, 0.0, typemax(Float64), :lambda) === nothing
450+
@test check_parameter(Int, 5, 1, typemax(Int), :nrounds) === nothing
451+
@test check_parameter(Int, 1, 1, typemax(Int), :nrounds) === nothing
452+
@test check_parameter(Int, 1, 1, 1, :nrounds) === nothing
453453

454454
# Invalid type tests
455455
@test_throws ErrorException check_parameter(Int, 1.5, 0, typemax(Int), :nrounds)
@@ -479,7 +479,7 @@ end
479479
for EvoTreeType in [EvoTreeMLE, EvoTreeGaussian, EvoTreeCount, EvoTreeClassifier, EvoTreeRegressor]
480480
config = EvoTreeType(nbins=32)
481481
# should not throw an exception
482-
@test check_args(config) == nothing
482+
@test check_args(config) === nothing
483483
# invalid nbins
484484
config.nbins = 256
485485
@test_throws Exception check_args(config)

0 commit comments

Comments
 (0)