Skip to content

Commit c909b79

Browse files
authored
fix remaining notebooks (#4081)
1 parent 1ba9d31 commit c909b79

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

docs/source/notebooks/DEMetropolisZ_EfficiencyComparison.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
2929
}
3030
],
3131
"source": [
32+
"import pathlib\n",
33+
"import time\n",
34+
"\n",
3235
"import arviz as az\n",
3336
"import fastprogress\n",
3437
"import ipywidgets\n",
3538
"import numpy as np\n",
3639
"import pandas as pd\n",
37-
"import pathlib\n",
3840
"import pymc3 as pm\n",
39-
"import time\n",
4041
"\n",
4142
"from matplotlib import cm\n",
4243
"from matplotlib import pyplot as plt\n",

docs/source/notebooks/DEMetropolisZ_tune_drop_fraction.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
}
2626
],
2727
"source": [
28+
"import time\n",
29+
"\n",
2830
"import arviz as az\n",
2931
"import ipywidgets\n",
3032
"import numpy as np\n",
3133
"import pandas as pd\n",
3234
"import pymc3 as pm\n",
33-
"import time\n",
3435
"\n",
3536
"from matplotlib import cm, gridspec\n",
3637
"from matplotlib import pyplot as plt\n",

docs/source/notebooks/GLM-logistic.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"metadata": {},
2222
"outputs": [],
2323
"source": [
24+
"import warnings\n",
25+
"\n",
26+
"from collections import OrderedDict\n",
27+
"from time import time\n",
28+
"\n",
2429
"import arviz as az\n",
2530
"import matplotlib.pyplot as plt\n",
2631
"import numpy as np\n",
@@ -29,12 +34,9 @@
2934
"import seaborn\n",
3035
"import theano as thno\n",
3136
"import theano.tensor as T\n",
32-
"import warnings\n",
3337
"\n",
34-
"from collections import OrderedDict\n",
3538
"from scipy import integrate\n",
3639
"from scipy.optimize import fmin_powell\n",
37-
"from time import time\n",
3840
"\n",
3941
"print('Running on PyMC3 v{}'.format(pm.__version__))"
4042
]

docs/source/notebooks/GLM-negative-binomial-regression.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
}
2222
],
2323
"source": [
24+
"import re\n",
25+
"\n",
2426
"import arviz as az\n",
2527
"import matplotlib.pyplot as plt\n",
2628
"import numpy as np\n",
2729
"import pandas as pd\n",
2830
"import pymc3 as pm\n",
29-
"import re\n",
3031
"import seaborn as sns\n",
3132
"\n",
3233
"from scipy import stats\n",

docs/source/notebooks/LKJ.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
"metadata": {},
2323
"outputs": [],
2424
"source": [
25+
"import warnings\n",
26+
"\n",
2527
"import arviz as az\n",
2628
"import numpy as np\n",
2729
"import pymc3 as pm\n",
2830
"import seaborn as sns\n",
29-
"import warnings\n",
3031
"\n",
3132
"from matplotlib import pyplot as plt\n",
3233
"from matplotlib.patches import Ellipse"

docs/source/notebooks/api_quickstart.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
16+
"import warnings\n",
17+
"\n",
1618
"import arviz as az\n",
1719
"import matplotlib.pyplot as plt\n",
1820
"import numpy as np\n",
1921
"import pymc3 as pm\n",
2022
"import theano.tensor as tt\n",
21-
"import warnings\n",
2223
"\n",
2324
"warnings.simplefilter(action=\"ignore\", category=FutureWarning)"
2425
]

0 commit comments

Comments
 (0)