Skip to content

Commit

Permalink
Adding aditional test case on save
Browse files Browse the repository at this point in the history
  • Loading branch information
pebeto committed Aug 18, 2023
1 parent 993f3d1 commit 851b146
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@

loaded_mach = machine(artifacts[1].filepath)
@test loaded_mach.model isa ProbabilisticPipeline

test_x, test_y = make_moons(1)
pred = predict(mach, test_x)[1]
loaded_mach_pred = predict(loaded_mach, test_x)[1]
@test pdf(pred, 0) == pdf(loaded_mach_pred, 0)
@test pdf(pred, 1) == pdf(loaded_mach_pred, 1)
end

@testset "accesor methods" begin
Expand Down

0 comments on commit 851b146

Please sign in to comment.