Skip to content

Commit 4a23ded

Browse files
committed
linear regression example: minor cleaning
1 parent ab0be62 commit 4a23ded

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

examples/Linear_Regression.ipynb

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,6 @@
4444
"Here I use JAX but you can freely change that and the notebook will work all the same."
4545
]
4646
},
47-
{
48-
"cell_type": "code",
49-
"execution_count": 3,
50-
"metadata": {
51-
"ExecuteTime": {
52-
"end_time": "2024-12-01T23:25:49.380507Z",
53-
"start_time": "2024-12-01T23:25:49.264127Z"
54-
}
55-
},
56-
"outputs": [],
57-
"source": [
58-
"%load_ext autoreload\n",
59-
"%autoreload 2"
60-
]
61-
},
6247
{
6348
"cell_type": "code",
6449
"execution_count": 4,
@@ -114,8 +99,8 @@
11499
},
115100
"outputs": [],
116101
"source": [
117-
"# TODO: do we have to require \"batch_shape\" to the function passed to meta_fn?\n",
118-
"def meta(batch_shape):\n",
102+
"def meta(batch_size):\n",
103+
" # batch_size needs to be present but will be ignored here\n",
119104
" # N: number of observation in a dataset\n",
120105
" N = np.random.randint(5, 15)\n",
121106
" return dict(N=N)\n",
@@ -272,7 +257,7 @@
272257
"id": "8wiGFZnE8VOe"
273258
},
274259
"source": [
275-
"To ensure that the training data generated by the simulator can be used for deep learning, we have do a bunch of transformations via `(data_)adapter` objects. Here, I build my own `adapter` from scratch but later on bayesflow will also provide default adapters that will already automate most of the commonly required steps."
260+
"To ensure that the training data generated by the simulator can be used for deep learning, we have do a bunch of transformations via `adapter` objects. Here, I build my own `adapter` from scratch but later on bayesflow will also provide default adapters that will already automate most of the commonly required steps."
276261
]
277262
},
278263
{

0 commit comments

Comments
 (0)