Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change Daniel's email #27

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SafetySignalDetection"
uuid = "ad9a3248-762c-4ade-a843-8f185e2c18ff"
authors = ["Daniel Sabanes Bove <daniel.sabanes_bove@roche.com>", "Kristian Brock <[email protected]>"]
authors = ["Daniel Sabanes Bove <daniel.sabanes_bove@rconis.com>", "Kristian Brock <[email protected]>"]
version = "0.0.1"

[deps]
Expand Down
6 changes: 3 additions & 3 deletions test/test_fit_beta_mixture.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ end
@test mix_fit.components[1].β ≈ β₂ rtol = 0.1
@test mix_fit.components[2].α ≈ α₁ rtol = 0.1
@test mix_fit.components[2].β ≈ β₁ rtol = 0.1
@test mix_fit.prior.p[1] ≈ 1 - π rtol = 0.01
@test mix_fit.prior.p[2] ≈ π rtol = 0.01
@test mix_fit.prior.p[1] ≈ 1 - π rtol = 0.1
@test mix_fit.prior.p[2] ≈ π rtol = 0.1
end

@testset "Check that fit_beta_mixture can fit the mean and standard deviation of samples well" begin
Expand All @@ -54,6 +54,6 @@ end
normal_dist = Normal(0.5, 0.05)
y = rand(normal_dist, N)
fit_y = fit_beta_mixture(y, 2)
@test mean(fit_y) ≈ mean(y) rtol = 0.02
@test mean(fit_y) ≈ mean(y) rtol = 0.1
@test std(fit_y) ≈ std(y) rtol = 0.1
end
4 changes: 2 additions & 2 deletions test/test_fit_mle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
@test mix_mle.components[1].β ≈ β₂ rtol = 0.1
@test mix_mle.components[2].α ≈ α₁ rtol = 0.1
@test mix_mle.components[2].β ≈ β₁ rtol = 0.1
@test mix_mle.prior.p[1] ≈ 1 - π rtol = 0.01
@test mix_mle.prior.p[2] ≈ π rtol = 0.01
@test mix_mle.prior.p[1] ≈ 1 - π rtol = 0.1
@test mix_mle.prior.p[2] ≈ π rtol = 0.1
end
Loading