Skip to content

Commit 314f45e

Browse files
formating
1 parent 10f61b6 commit 314f45e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/advanced_tutorials/19_flowmatching_and_scorematching.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@
453453
],
454454
"source": [
455455
"from sbi.utils.vector_field_utils import VectorFieldNet\n",
456+
"\n",
456457
"?VectorFieldNet.forward"
457458
]
458459
},
@@ -480,18 +481,18 @@
480481
"\n",
481482
" def forward(self, theta, x, t):\n",
482483
" # Requires 3 arguments for input (i.e. theta), condition (i.e. x) and \"time\" (a scalar)\n",
483-
" \n",
484+
"\n",
484485
" # Whatever weird things you want to do, you can do here.\n",
485486
" h1 = self.in_layer1(x[...,None,:]).mean(-1)\n",
486487
" h2 = self.in_layer2(theta[...,None,:]).mean(-1)\n",
487488
" t = self.time_layer(t[...,None])\n",
488489
" h = torch.relu(h1 + h2 + t)\n",
489490
" out = self.out_layer(h)\n",
490-
" \n",
491+
"\n",
491492
" # Output dimension must exaclty match \"theta.shape\"\n",
492493
" return out\n",
493-
" \n",
494-
"net_base = CustomNetExample() \n",
494+
"\n",
495+
"net_base = CustomNetExample()\n",
495496
"# This will still add some of `sbi` standard \"preconditioning\" for\n",
496497
"# diffusion/fmpe as well as automatic z-scoring transforms.\n",
497498
"# If you do want this you can also simple write your own builder.\n",

0 commit comments

Comments
 (0)