def demo_name_annot_complexity(): """ This demo is meant to show the structure of the graph as more annotations and names are added. CommandLine: python -m ibeis.algo.hots.demobayes --exec-demo_name_annot_complexity --show Example: >>> # DISABLE_DOCTEST >>> from ibeis.algo.hots.demobayes import * # NOQA >>> demo_name_annot_complexity() >>> ut.show_if_requested() """ constkw = dict(score_evidence=[], name_evidence=[], mode=1) # Initially there are 2 annots and 4 names model, = test_model(num_annots=2, num_names=4, **constkw) draw_tree_model(model) # Adding a name causes the probability of the other names to go down model, = test_model(num_annots=2, num_names=5, **constkw) draw_tree_model(model) # Adding an annotation wihtout matches dos not effect probabilities of # names model, = test_model(num_annots=3, num_names=5, **constkw) draw_tree_model(model) model, = test_model(num_annots=4, num_names=10, **constkw) draw_tree_model(model) # Given A annots, the number of score nodes is (A ** 2 - A) / 2 model, = test_model(num_annots=5, num_names=5, **constkw) draw_tree_model(model)
def demo_structure(): r""" CommandLine: python -m ibeis.algo.hots.demobayes --exec-demo_structure --show Example: >>> # DISABLE_DOCTEST >>> from ibeis.algo.hots.demobayes import * # NOQA >>> result = demo_structure() >>> ut.show_if_requested() """ constkw = dict(score_evidence=[], name_evidence=[], mode=3) model, = test_model(num_annots=4, num_names=4, **constkw) draw_tree_model(model)