TuringPigeonsExamples - Targets collection
Setup instructions
To setup TuringPigeonsExamples:
julia
using InferenceTargets, Pkg
package_spec = InferenceTargets.registry[:TuringPigeonsExamples]
Pkg.add(package_spec)
using TuringPigeonsExamples Resolving package versions...
No Changes to `~/work/InferenceTargets/InferenceTargets/docs/Project.toml`
No Changes to `~/work/InferenceTargets/InferenceTargets/docs/Manifest.toml`Repository information
julia
package_specPackageSpec(
url = https://github.com/Julia-Tempering/TuringPigeonsExamples
rev = 0b09109682db72a1283c886d2855c9e8a4e4cce9
version = *
)Usage
To access the list of targetIds available in TuringPigeonsExamples:
julia
ids = find_targetIds(TuringPigeonsExamples)
length(ids)6To load one target:
julia
some_id = ids[1]
load_target(TuringPigeonsExamples, some_id)TuringLogPotential{...}(DynamicPPL.Model{typeof(TuringPigeonsExamples.model_with_vectors), (:dim,), (), (), Tuple{Int64}, Tuple{}, DynamicPPL.DefaultContext}(TuringPigeonsExamples.model_with_vectors, (dim = 1000,), NamedTuple(), DynamicPPL.DefaultContext()), DynamicPPL.DefaultContext(), 2000)Summary
julia
using Markdown, PrettyTables
success, errored = InferenceTargets.summary_table(TuringPigeonsExamples)Successfully loaded targets
julia
pretty_table(HTML, success; backend = Val(:html), show_subheader=false)| targetId | type |
|---|---|
| iid_normal_1000 | TuringLogPotential{...} |
| iid_normal_10 | TuringLogPotential{...} |
| flip_model_modified | TuringLogPotential{...} |
| flip_mixture | TuringLogPotential{...} |
| unid_model | TuringLogPotential{...} |
| galaxy | TuringLogPotential{...} |
Errored targets
julia
pretty_table(HTML, errored; backend = Val(:html), show_subheader=false)