included BNN chapter

This commit is contained in:
NT 2021-04-04 21:48:43 +08:00
parent 9bf28e3edd
commit 48e07c58b8
4 changed files with 1222 additions and 13 deletions

View File

@ -40,23 +40,27 @@
- part: Physical Gradients - part: Physical Gradients
chapters: chapters:
- file: physgrad.md - file: physgrad.md
sections:
- file: physgrad-comparison.ipynb - file: physgrad-comparison.ipynb
- file: physgrad-nn.md - file: physgrad-nn.md
- file: physgrad-discuss.md - file: physgrad-discuss.md
- part: PBDL and Uncertainty
chapters:
- file: bayesian-intro.md
- file: bayesian-code.md
- part: End Matter - part: End Matter
chapters: chapters:
- file: outlook.md - file: outlook.md
- file: old-phiflow1.md # - file: old-phiflow1.md
sections: # sections:
- file: overview-burgers-forw-v1.ipynb # - file: overview-burgers-forw-v1.ipynb
- file: overview-ns-forw-v1.ipynb # - file: overview-ns-forw-v1.ipynb
- file: physicalloss-code-v2.ipynb # - file: physicalloss-code-v2.ipynb
- file: diffphys-code-gradient-v1.ipynb # - file: diffphys-code-gradient-v1.ipynb
- file: diffphys-code-tf.ipynb # - file: diffphys-code-tf.ipynb
- file: diffphys-code-ns-v1.ipynb # - file: diffphys-code-ns-v1.ipynb
- file: diffphys-code-ns-v2a.ipynb # - file: diffphys-code-ns-v2a.ipynb
- file: references.md - file: references.md
- file: notation.md - file: notation.md

1183
bayesian-code.ipynb Normal file

File diff suppressed because one or more lines are too long

14
bayesian-intro.md Normal file
View File

@ -0,0 +1,14 @@
Introduction to Posterior Inference
=======================
more complex models -> fit data better , but overfit & dont generalize
-> posterior (distrib) inference
std NNs do MLE for weights
"theoretically justifiable" ie correct thing to do -> "posterior inference"
extremely difficult
useful for uncertainty! esp interesting in phys setting
first example here with airfoils, extension from {doc}`supervised-airfoils`

View File

@ -20,6 +20,14 @@ sed -i '' -e 's/}.jpg}/.jpg}/g' ${JPYFILENAME}
sed -i '' -e 's/}.jpeg}/.jpeg}/g' ${JPYFILENAME} sed -i '' -e 's/}.jpeg}/.jpeg}/g' ${JPYFILENAME}
sed -i '' -e 's/sphinxpxdimen]{{/sphinxpxdimen]{/g' ${JPYFILENAME} sed -i '' -e 's/sphinxpxdimen]{{/sphinxpxdimen]{/g' ${JPYFILENAME}
# fix chapters
# sed -i '' -e 's///g' ${JPYFILENAME}
# sed -i '' -e 's///g' ${JPYFILENAME}
# sed -i '' -e 's///g' ${JPYFILENAME}
sed -i '' -e 's/\chapter{/\chaXter{/g' ${JPYFILENAME}
sed -i '' -e 's/\section{/\chapter{/g' ${JPYFILENAME}
sed -i '' -e 's/\chaXter{/\subsection{/g' ${JPYFILENAME}
# ugly, -i doesnt work here: # ugly, -i doesnt work here:
sed '28i\ sed '28i\
\\usepackage{mathrsfs} ' ${JPYFILENAME} > tmp-latex \\usepackage{mathrsfs} ' ${JPYFILENAME} > tmp-latex