File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 13
13
14
14
from .diagnostics import *
15
15
16
- from .plots import *
16
+ # from .plots import *
17
17
18
18
from .tests import test
19
19
20
20
from . import glm
21
- from .data import *
21
+ from .data import *
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def run(n=2000):
37
37
38
38
plt .plot (x , y , 'x' )
39
39
glm .plot_posterior_predictive (trace )
40
- # plt.show()
40
+ plt .show ()
41
41
42
42
if __name__ == '__main__' :
43
43
run ()
Original file line number Diff line number Diff line change 1
- from pylab import *
1
+ import matplotlib . pyplot as plt
2
2
from pymc import *
3
3
import numpy as np
4
4
import theano
@@ -27,16 +27,16 @@ def run(n=1000):
27
27
with model :
28
28
trace = sample (1e3 , step )
29
29
30
- subplot (2 , 2 , 1 )
31
- plot (trace [x ][:, 0 , 0 ])
32
- subplot (2 , 2 , 2 )
33
- hist (trace [x ][:, 0 , 0 ])
30
+ plt . subplot (2 , 2 , 1 )
31
+ plt . plot (trace [x ][:, 0 , 0 ])
32
+ plt . subplot (2 , 2 , 2 )
33
+ plt . hist (trace [x ][:, 0 , 0 ])
34
34
35
- subplot (2 , 2 , 3 )
36
- plot (trace [x ][:, 1 , 0 ])
37
- subplot (2 , 2 , 4 )
38
- hist (trace [x ][:, 1 , 0 ])
39
- # show()
35
+ plt . subplot (2 , 2 , 3 )
36
+ plt . plot (trace [x ][:, 1 , 0 ])
37
+ plt . subplot (2 , 2 , 4 )
38
+ plt . hist (trace [x ][:, 1 , 0 ])
39
+ plt . show ()
40
40
41
41
if __name__ == '__main__' :
42
42
run ()
You can’t perform that action at this time.
0 commit comments