Skip to content

Commit 2f86bca

Browse files
committed
disable bambi
1 parent d8207d9 commit 2f86bca

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

preliz/tests/predictive_explorer.ipynb

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"import pandas as pd\n",
1717
"\n",
1818
"try:\n",
19-
" import bambi as bmb\n",
19+
" #import bambi as bmb\n",
2020
" import pymc as pm\n",
2121
"except ImportError:\n",
2222
" pass\n",
@@ -95,33 +95,33 @@
9595
"metadata": {},
9696
"outputs": [],
9797
"source": [
98-
"%%ipytest\n",
98+
"# %%ipytest\n",
9999
"\n",
100-
"rng = np.random.default_rng(1241)\n",
100+
"# rng = np.random.default_rng(1241)\n",
101101
"\n",
102-
"data = pd.DataFrame(\n",
103-
" {\n",
104-
" \"y\": rng.normal(size=117),\n",
105-
" \"x\": rng.normal(size=117),\n",
106-
" }\n",
107-
")\n",
108-
"data.head()\n",
102+
"# data = pd.DataFrame(\n",
103+
"# {\n",
104+
"# \"y\": rng.normal(size=117),\n",
105+
"# \"x\": rng.normal(size=117),\n",
106+
"# }\n",
107+
"# )\n",
108+
"# data.head()\n",
109109
"\n",
110-
"@pytest.fixture\n",
111-
"def model():\n",
112-
" def a_bambi_model(a_mu, b_sigma=1):\n",
113-
" prior = {\"Intercept\": bmb.Prior(\"Normal\", mu=a_mu, sigma=b_sigma)}\n",
114-
" a_model = bmb.Model(\"y ~ x\", data, priors=prior)\n",
115-
" return a_model\n",
116-
" return a_bambi_model\n",
110+
"# @pytest.fixture\n",
111+
"# def model():\n",
112+
"# def a_bambi_model(a_mu, b_sigma=1):\n",
113+
"# prior = {\"Intercept\": bmb.Prior(\"Normal\", mu=a_mu, sigma=b_sigma)}\n",
114+
"# a_model = bmb.Model(\"y ~ x\", data, priors=prior)\n",
115+
"# return a_model\n",
116+
"# return a_bambi_model\n",
117117
"\n",
118-
"@pytest.mark.parametrize(\"iterations, kind_plot\", [\n",
119-
" (50, \"hist\"),\n",
120-
" (10, \"kde\"),\n",
121-
" (10, \"ecdf\"),\n",
122-
"])\n",
123-
"def test_predictive_explorer(model, iterations, kind_plot):\n",
124-
" predictive_explorer(model, iterations, kind_plot)"
118+
"# @pytest.mark.parametrize(\"iterations, kind_plot\", [\n",
119+
"# (50, \"hist\"),\n",
120+
"# (10, \"kde\"),\n",
121+
"# (10, \"ecdf\"),\n",
122+
"# ])\n",
123+
"# def test_predictive_explorer(model, iterations, kind_plot):\n",
124+
"# predictive_explorer(model, iterations, kind_plot)"
125125
]
126126
},
127127
{
@@ -149,7 +149,7 @@
149149
"name": "python",
150150
"nbconvert_exporter": "python",
151151
"pygments_lexer": "ipython3",
152-
"version": "3.11.8"
152+
"version": "3.14.4"
153153
}
154154
},
155155
"nbformat": 4,

0 commit comments

Comments
 (0)