Module Expr Str Import alias identifier ImportFrom alias Import alias identifier ImportFrom alias alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num ListLoad ListLoad Num Num ListLoad Num Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num ListLoad ListLoad Num Num ListLoad Num Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num ListLoad ListLoad Num Num ListLoad Num Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num ListLoad ListLoad Num Num ListLoad Num Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad BinOpMult Num Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call NameLoad NameLoad keyword TupleLoad NameLoad keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMult Num Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad BinOpMult Num Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Num Num decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str keyword NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str keyword NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str keyword NameLoad FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str keyword NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Num Num Num keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpPow SubscriptLoad NameLoad Index Str Num keyword Str decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str keyword NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Num Num Num Call AttributeLoad NameLoad attr Num Num Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Str keyword Str keyword Str keyword Num keyword Num decorator_list Call NameLoad keyword ListLoad Str keyword ListLoad Str keyword NameLoad FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpDiv Num Num BinOpDiv Num Num BinOpDiv Num Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad BinOpMult NameLoad ListLoad Num keyword Str Assign NameStore Call NameLoad NameLoad keyword TupleLoad NameLoad Num keyword Str Assign NameStore Call NameLoad ListLoad Num Num keyword TupleLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd BinOpAdd BinOpMult NameLoad NameLoad NameLoad BinOpMult NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad attr Assign NameStore Call NameLoad Num Num keyword TupleLoad Num Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad attr Assign NameStore Call NameLoad Str NameLoad NameLoad Return Call NameLoad decorator_list
N/A N/A 
Tests for the module bayespy.plot.

This file mostly contains functional tests. Since testing the plotting
capabilities relies on image comparisons, it's difficult to create
strict unit tests.
 N/A numpy np matplotlib.testing.decorators image_comparison N/A bayespy.plot bpplt bayespy.nodes Bernoulli Beta Categorical Dirichlet Gamma Gaussian GaussianARD Mixture SumMultiply Wishart bayespy.inference VB bayespy.utils random test_gaussian_mixture_plot N/A N/A N/A N/A N/A 
    Test the gaussian_mixture plotting function.

    The code is from http://www.bayespy.org/examples/gmm.html
     N/A N/A N/A N/A np random seed 1 N/A y0 N/A N/A N/A np random multivariate_normal N/A 0 0 N/A N/A 1 0 N/A 0 0.02 size 50 N/A y1 N/A N/A N/A np random multivariate_normal N/A 0 0 N/A N/A 0.02 0 N/A 0 1 size 50 N/A y2 N/A N/A N/A np random multivariate_normal N/A 2 2 N/A N/A 1 -0.9 N/A -0.9 1 size 50 N/A y3 N/A N/A N/A np random multivariate_normal N/A -2 -2 N/A N/A 0.1 0 N/A 0 0.1 size 50 N/A y N/A N/A np vstack N/A y0 y1 y2 y3 N/A N/A N/A N/A bpplt pyplot plot N/A y N/A N/A N/A 0 N/A y N/A N/A N/A 1 rx N/A N 200 N/A D 2 N/A K 10 N/A alpha N/A Dirichlet N/A 1e-05 N/A N/A np ones K name alpha N/A Z N/A Categorical alpha plates N/A N name z N/A mu N/A Gaussian N/A N/A np zeros D N/A 1e-05 N/A N/A np identity D plates N/A K name mu N/A Lambda N/A Wishart D N/A 1e-05 N/A N/A np identity D plates N/A K name Lambda N/A Y N/A Mixture Z Gaussian mu Lambda name Y N/A N/A N/A Z initialize_from_random N/A Q N/A VB Y mu Lambda Z alpha N/A N/A N/A Y observe y N/A N/A N/A Q update repeat 1000 N/A N/A N/A bpplt gaussian_mixture_2d Y scale 2 N/A N/A N/A N/A bpplt pyplot xlim N/A -3 6 N/A N/A N/A N/A bpplt pyplot ylim N/A -3 5 N/A N/A image_comparison baseline_images N/A gaussian_mixture extensions N/A png remove_text True test_hinton_plot_dirichlet N/A N/A N/A N/A N/A N/A R P Z N/A _setup_bernoulli_mixture N/A N/A N/A bpplt hinton R N/A N/A image_comparison baseline_images N/A hinton_r extensions N/A png remove_text True test_hinton_plot_beta N/A N/A N/A N/A N/A N/A R P Z N/A _setup_bernoulli_mixture N/A N/A N/A bpplt hinton P N/A N/A image_comparison baseline_images N/A hinton_p extensions N/A png remove_text True test_hinton_plot_categorical N/A N/A N/A N/A N/A N/A R P Z N/A _setup_bernoulli_mixture N/A N/A N/A bpplt hinton Z N/A N/A image_comparison baseline_images N/A hinton_z extensions N/A png remove_text True test_pdf_plot N/A N/A N/A N/A N/A data N/A _setup_linear_regression N/A N/A N/A bpplt pdf N/A data N/A tau N/A N/A np linspace 1e-06 1 100 color k N/A N/A N/A N/A bpplt pyplot axvline N/A N/A data N/A s -2 color r N/A N/A image_comparison baseline_images N/A pdf extensions N/A png remove_text True test_contour_plot N/A N/A N/A N/A N/A data N/A _setup_linear_regression N/A N/A N/A bpplt contour N/A data N/A B N/A N/A np linspace 1 3 1000 N/A N/A np linspace 1 9 1000 n 10 colors k N/A N/A N/A bpplt plot N/A data N/A c x N/A data N/A k color r marker x linestyle None markersize 10 markeredgewidth 2 N/A N/A image_comparison baseline_images N/A contour extensions N/A png remove_text True _setup_bernoulli_mixture N/A N/A N/A N/A N/A 
    Setup code for the hinton tests.

    This code is from http://www.bayespy.org/examples/bmm.html
     N/A N/A N/A N/A np random seed 1 N/A p0 N/A 0.1 0.9 0.1 0.9 0.1 0.9 0.1 0.9 0.1 0.9 N/A p1 N/A 0.1 0.1 0.1 0.1 0.1 0.9 0.9 0.9 0.9 0.9 N/A p2 N/A 0.9 0.9 0.9 0.9 0.9 0.1 0.1 0.1 0.1 0.1 N/A p N/A N/A np array N/A p0 p1 p2 N/A z N/A N/A random categorical N/A N/A 1 3 N/A 1 3 N/A 1 3 size 100 N/A x N/A N/A random bernoulli N/A p N/A z N/A N 100 N/A D 10 N/A K 10 N/A R N/A Dirichlet N/A K N/A 1e-05 name R N/A Z N/A Categorical R plates N/A N 1 name Z N/A P N/A Beta N/A 0.5 0.5 plates N/A D K name P N/A X N/A Mixture Z Bernoulli P N/A Q N/A VB Z R X P N/A N/A N/A P initialize_from_random N/A N/A N/A X observe x N/A N/A N/A Q update repeat 1000 N/A N/A R P Z N/A _setup_linear_regression N/A N/A N/A N/A N/A 
    Setup code for the pdf and contour tests.

    This code is from http://www.bayespy.org/examples/regression.html
     N/A N/A N/A N/A np random seed 1 N/A k 2 N/A c 5 N/A s 2 N/A x N/A N/A np arange 10 N/A y N/A N/A N/A k x c N/A s N/A N/A N/A np random randn 10 N/A X N/A N/A N/A np vstack N/A x N/A N/A np ones N/A len x T N/A B N/A GaussianARD 0 1e-06 shape N/A 2 N/A F N/A SumMultiply i,i B X N/A tau N/A Gamma 0.001 0.001 N/A Y N/A GaussianARD F tau N/A N/A N/A Y observe y N/A Q N/A VB Y B tau N/A N/A N/A Q update repeat 1000 N/A xh N/A N/A np linspace -5 15 100 N/A Xh N/A N/A N/A np vstack N/A xh N/A N/A np ones N/A len xh T N/A Fh N/A SumMultiply i,i B Xh N/A N/A locals N/A