Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
penelopeysm and github-actions[bot] authored Dec 6, 2024
1 parent ff52fb3 commit 076a7a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/abstractprobprog.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ Draw a sample from the predictive distribution specified by `model` with its par
The sample will be returned as format specified by `T`.
"""
function StatsBase.predict(rng::AbstractRNG, T::Type, model::AbstractProbabilisticProgram, params)
function StatsBase.predict(
rng::AbstractRNG, T::Type, model::AbstractProbabilisticProgram, params
)
return rand(rng, T, fix(model, params))
end
function StatsBase.predict(T::Type, model::AbstractProbabilisticProgram, params)
Expand All @@ -139,6 +141,8 @@ end
function StatsBase.predict(model::AbstractProbabilisticProgram, params)
return StatsBase.predict(NamedTuple, model, params)
end
function StatsBase.predict(rng::AbstractRNG, T::Type, model::AbstractProbabilisticProgram, params)
function StatsBase.predict(
rng::AbstractRNG, T::Type, model::AbstractProbabilisticProgram, params
)
return StatsBase.predict(rng, NamedTuple, model, params)
end

0 comments on commit 076a7a5

Please sign in to comment.