Skip to content

Commit

Permalink
Update test/regression/low_precision.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer authored Oct 16, 2023
1 parent 385a066 commit 37a190e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/regression/low_precision.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
model = build_forest(labels, features)
preds = apply_forest(model, features)
@test typeof(preds) == Vector{Float16}
# Verify that the `preds` were calculated based on `labels` of the same type.
# If the code at some point converts the numbers to, say, `Float64`, then this test will fail.
@test !all(x->(x in labels), preds)

preds_MT = apply_forest(model, features; use_multithreading=true)
Expand Down

0 comments on commit 37a190e

Please sign in to comment.