Skip to content

Instantly share code, notes, and snippets.

View markvdw's full-sized avatar

Mark van der Wilk markvdw

View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import tensorflow_datasets as tfds
import gpflow
from typing import Dict, Optional, Tuple
from gpflow.utilities import to_default_float, set_trainable
original_dataset, info = tfds.load(name="mnist", split=tfds.Split.TRAIN, with_info=True)
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import tensorflow_datasets as tfds
import gpflow
from typing import Dict, Optional, Tuple
from gpflow.utilities import to_default_float, set_trainable
original_dataset, info = tfds.load(name="mnist", split=tfds.Split.TRAIN, with_info=True)
\usepackage[hyperref,style=authoryear-comp,natbib=true,maxbibnames=10,maxcitenames=2,useeditor=false,url=false,useprefix,giveninits=false,uniquelist=false,sortcites=false]{biblatex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This makes all titles sentence case, while leaving journals as title case
\DeclareFieldFormat{sentencecase}{\MakeSentenceCase{#1}}
\renewbibmacro*{title}{%
\ifthenelse{\iffieldundef{title}\AND\iffieldundef{subtitle}}
{}
{\ifthenelse{\ifentrytype{article}\OR\ifentrytype{inbook}%
@markvdw
markvdw / MarkMathCmds.sty
Last active August 31, 2018 18:17
Some mathematical commands for latex.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{MarkMathCmds}
[2013/07/26 v1.00 MarkMathCms]
\usepackage{xspace}
\usepackage{amssymb}
\usepackage{cancel}
\newcommand\ccancel[2][red]{\renewcommand\CancelColor{\color{#1}}\cancel{#2}}
\newcommand\ccancelto[2][red]{\renewcommand\CancelColor{\color{#1}}\cancelto{#2}}
% Linear algebra
@markvdw
markvdw / numerical-integration.ipynb
Last active February 22, 2022 09:29
A notebook detailing multivariate Gauss-Hermite quadrature
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.