Skip to content

Commit fe49c7a

Browse files
authored
Merge pull request #1179 from gwulfs/unused-imports-ex
remove unused imports from examples
2 parents 6d201ef + 18d8d00 commit fe49c7a

17 files changed

+6
-28
lines changed

pymc3/examples/ARM5_4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
'''
66
import numpy as np
77
from pymc3 import *
8-
import theano.tensor as t
98
import pandas as pd
109

1110
wells = get_data_file('pymc3.examples', 'data/wells.dat')

pymc3/examples/banana.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
@author: jsalvatier
55
'''
66
from pymc3 import *
7-
from numpy.random import normal
87
import numpy as np
98
import pylab as pl
10-
from itertools import product
119

1210

1311
"""
@@ -49,7 +47,6 @@ def run(n = 3000):
4947

5048

5149
# lets plot the samples vs. the actual distribution
52-
from theano import function
5350
xn = 1500
5451
yn = 1000
5552

pymc3/examples/disaster_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
from pymc3 import *
1212

13-
import theano.tensor as t
14-
from numpy import arange, array, ones, concatenate
15-
from numpy.random import randint
13+
from numpy import arange, array
1614

1715
__all__ = ['disasters_data', 'switchpoint', 'early_mean', 'late_mean', 'rate',
1816
'disasters']

pymc3/examples/disaster_model_arbitrary_deterministic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
from pymc3 import *
99
import theano.tensor as t
10-
from numpy import arange, array, ones, concatenate, empty
11-
from numpy.random import randint
10+
from numpy import arange, array, empty
1211

1312
__all__ = ['disasters_data', 'switchpoint', 'early_mean', 'late_mean', 'rate',
1413
'disasters']

pymc3/examples/disaster_model_missing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
from pymc3 import *
1212

13-
import theano.tensor as t
14-
from numpy import arange, array, ones, concatenate
15-
from numpy.random import randint
13+
from numpy import arange, array
1614
from numpy.ma import masked_values
1715

1816
__all__ = ['disasters_data', 'switchpoint', 'early_mean', 'late_mean', 'rate',

pymc3/examples/gelman_bioassay.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from pymc3 import *
22
from numpy import ones, array
3-
import theano.tensor as t
43

54
# Samples for each dose level
65
n = 5 * ones(4, dtype=int)

pymc3/examples/glm_linear.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sys
2-
31
import numpy as np
42
import scipy.optimize as opt
53

pymc3/examples/glm_robust.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import numpy as np
2-
import sys
32

43
from pymc3 import *
54

pymc3/examples/hierarchical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pymc3 import *
22
import theano.tensor as tt
3-
from numpy import random, sum as nsum, ones, concatenate, newaxis, dot, arange
3+
from numpy import random, sum as nsum, concatenate, newaxis, dot
44
import numpy as np
55

66
random.seed(1)

pymc3/examples/lasso_missing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pymc3 import *
2-
import numpy as np
32
import pandas as pd
43
from numpy.ma import masked_values
54

pymc3/examples/latent_occupancy.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
# Import statements
3434
from pymc3 import *
3535
from numpy import random, array, arange, ones
36-
import theano.tensor as t
3736
# Sample size
3837
n = 100
3938
# True mean count, given occupancy

pymc3/examples/normal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from pymc3 import *
22
import numpy as np
3-
import theano
43

54
# import pydevd
65
# pydevd.set_pm_excepthook()

pymc3/examples/nutstest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
from matplotlib.pylab import *
77
from pymc3 import *
8-
import numpy as np
9-
from numpy.random import normal, beta
10-
import theano
8+
from numpy.random import normal
119

1210

1311

pymc3/examples/python_vs_c.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from pymc3 import *
22
import numpy as np
3-
import theano.tensor as t
43

54
# import pydevd
65
# pydevd.set_pm_excepthook()

pymc3/examples/simpletest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import matplotlib.pyplot as plt
22
from pymc3 import *
33
import numpy as np
4-
import theano
54

65
# import pydevd
76
# pydevd.set_pm_excepthook()

pymc3/examples/speedtest_pymc3.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232

3333
# Import statements
3434
from pymc3 import *
35-
from numpy import random, array, arange, ones
36-
import theano.tensor as t
35+
from numpy import random, array
3736
# Sample size
3837
n = 100000
3938
# True mean count, given occupancy

pymc3/examples/stochastic_volatility.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pymc3 import *
99
from pymc3.distributions.timeseries import *
1010

11-
from scipy.sparse import csc_matrix
1211
from scipy import optimize
1312

1413
# <markdowncell>

0 commit comments

Comments
 (0)