Skip to content

Commit d36bbf4

Browse files
committed
update test thresholds -> 0.9
1 parent ad23902 commit d36bbf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/classification/low_precision.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ model = build_tree(
2929
preds = apply_tree(model, features)
3030
cm = confusion_matrix(labels, preds)
3131
@test typeof(preds) == Vector{Int32}
32-
@test cm.accuracy > 0.95
32+
@test cm.accuracy > 0.9
3333

3434
n_subfeatures = Int32(0)
3535
n_trees = Int32(10)

test/classification/random.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ print_tree(model, 3)
2020
model = build_tree(labels, features)
2121
preds = apply_tree(model, features)
2222
cm = confusion_matrix(labels, preds)
23-
@test cm.accuracy > 0.95
23+
@test cm.accuracy > 0.9
2424
@test typeof(preds) == Vector{Int}
2525

2626
# test RNG param of trees
@@ -40,7 +40,7 @@ t3 = build_tree(labels, features, n_subfeatures; rng=mt)
4040
model = build_forest(labels, features)
4141
preds = apply_forest(model, features)
4242
cm = confusion_matrix(labels, preds)
43-
@test cm.accuracy > 0.95
43+
@test cm.accuracy > 0.9
4444
@test typeof(preds) == Vector{Int}
4545

4646
n_subfeatures = 3

0 commit comments

Comments
 (0)