Skip to content

Commit

Permalink
correct type specification
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Jun 11, 2024
1 parent ea2b6df commit d5f847d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nb_model = generate_observations(nb, missing, fill(10, 10))
rand(nb_model)
```
"
@kwdef struct NegativeBinomialError{S <: Sampleable, T <: AbstractFloat} <:
@kwdef struct NegativeBinomialError{S <: Sampleable} <:
AbstractTuringObservationErrorModel
"The prior distribution for the cluster factor."
cluster_factor_prior::S = HalfNormal(0.01)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ poi_model = generate_observations(poi, missing, fill(10, 10))
rand(poi_model)
```
"
struct PoissonError{T <: AbstractFloat} <: AbstractTuringObservationErrorModel
struct PoissonError <: AbstractTuringObservationErrorModel
end

@doc raw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ It dispatches to the `observation_error` function to generate the observation er
@assert length(y_t)==length(Y_t) "The observation vector and expected observation vector must have the same length."
end

pad_Y_t = Y_t + 1e-6
pad_Y_t = Y_t .+ 1e-6

for i in findfirst(!ismissing, Y_t):length(Y_t)
y_t[i] ~ observation_error(obs_model, pad_Y_t[i], priors...)
Expand Down

0 comments on commit d5f847d

Please sign in to comment.