Skip to content

Commit 4068a05

Browse files
committed
Add an image of visualized posterior
1 parent 41fc67f commit 4068a05

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

bayesml/contexttree/_contexttree.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def visualize_model(self,filename=None,format=None,sample_length=10):
388388
Examples
389389
--------
390390
>>> from bayesml import contexttree
391-
>>> model = contexttree.GenModel(c_k=3,c_d_max=3,h_g=0.75)
391+
>>> model = contexttree.GenModel(c_k=2,c_d_max=3,h_g=0.75)
392392
>>> gen_model.gen_params()
393393
>>> model.visualize_model()
394394
[1 1 1 1 1 1 0 0 0 1]
@@ -857,14 +857,14 @@ def visualize_posterior(self,filename=None,format=None):
857857
858858
Examples
859859
--------
860-
>>> from bayesml import metatree
861-
>>> gen_model = metatree.GenModel(c_k=3,h_g=0.75)
862-
>>> x,y = gen_model.gen_sample(500)
863-
>>> learn_model = metatree.LearnModel(c_k=3)
864-
>>> learn_model.update_posterior(x,y)
860+
>>> from bayesml import contexttree
861+
>>> gen_model = contexttree.GenModel(c_k=2,c_d_max=3,h_g=0.75)
862+
>>> x = gen_model.gen_sample(50)
863+
>>> learn_model = contexttree.LearnModel(c_k=2,c_d_max=3,h0_g=0.75)
864+
>>> learn_model.update_posterior(x)
865865
>>> learn_model.visualize_posterior()
866866
867-
.. image:: ./images/metatree_posterior.png
867+
.. image:: ./images/contexttree_posterior.png
868868
869869
See Also
870870
--------

doc/images/contexttree_posterior.png

71.8 KB
Loading

0 commit comments

Comments
 (0)