Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewilliami committed Oct 28, 2020
1 parent 89ce343 commit 6599486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ const main_data_path = joinpath(@__DIR__, "images")
p = sum(ensemble_vote_all(pos_testing_path, classifiers)) / num_faces
n = (num_non_faces - sum(ensemble_vote_all(neg_testing_path, classifiers))) / num_non_faces
end
@test p == 0.63
@test n == 0.372
@test isapprox(p, 0.63, atol=1e-1)
@test isapprox(n, 0.372, atol=1e-1)
random_img = rand(vcat(filtered_ls.([pos_training_path, neg_training_path, pos_testing_path, neg_testing_path])...))
@test get_faceness(classifiers[rand(1:length(classifiers))], load_image(random_img)) isa Integer
@test determine_feature_size(pos_training_path, neg_training_path) == (10, 10, 8, 8, (19, 19))
Expand Down

0 comments on commit 6599486

Please sign in to comment.