@@ -26,6 +26,10 @@ function pdf(::LikelihoodAbilityEstimator,
2626 AbilityLikelihood (tracked_responses)
2727end
2828
29+ function show (io:: IO , :: MIME"text/plain" , ability_estimator:: LikelihoodAbilityEstimator )
30+ println (io, " Ability likelihood distribution" )
31+ end
32+
2933struct PosteriorAbilityEstimator{PriorT <: Distribution } <: DistributionAbilityEstimator
3034 prior:: PriorT
3135end
@@ -57,6 +61,14 @@ function multiple_response_types_guard(tracked_responses)
5761 return false
5862end
5963
64+ function show (io:: IO , :: MIME"text/plain" , ability_estimator:: PosteriorAbilityEstimator )
65+ println (io, " Ability posterior distribution" )
66+ indent_io = indent (io, 2 )
67+ print (indent_io, " Prior: " )
68+ show (indent_io, MIME (" text/plain" ), ability_estimator. prior)
69+ println (io)
70+ end
71+
6072struct GuardedAbilityEstimator{T <: DistributionAbilityEstimator , U <: DistributionAbilityEstimator , F} <: DistributionAbilityEstimator
6173 est:: T
6274 fallback:: U
214226
215227function show (io:: IO , :: MIME"text/plain" , ability_estimator:: ModeAbilityEstimator )
216228 println (io, " Estimate ability using its mode" )
217- indent_io = indent (io, 2 ; skip_first= true )
218- print (indent_io, " Distribution estimator " )
219- show (indent_io, ability_estimator. dist_est)
220- print (indent_io, " Optimizer: " )
221- show (indent_io, ability_estimator. optim)
229+ indent_io = indent (io, 2 )
230+ show (indent_io, MIME (" text/plain" ), ability_estimator. dist_est)
231+ show (indent_io, MIME (" text/plain" ), ability_estimator. optim)
222232end
223233
224234struct MeanAbilityEstimator{
@@ -236,6 +246,14 @@ function MeanAbilityEstimator(bits...)
236246 MeanAbilityEstimator (dist_est, integrator)
237247end
238248
249+ function show (io:: IO , :: MIME"text/plain" , ability_estimator:: MeanAbilityEstimator )
250+ println (io, " Estimate ability using its mean" )
251+ indent_io = indent (io, 2 )
252+ show (indent_io, MIME (" text/plain" ), ability_estimator. dist_est)
253+ print (indent_io, " Integrator: " )
254+ show (indent_io, MIME (" text/plain" ), ability_estimator. integrator)
255+ end
256+
239257function distribution_estimator (dist_est:: DistributionAbilityEstimator ):: DistributionAbilityEstimator
240258 dist_est
241259end
0 commit comments