This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
If you place this script at the bottom of your Python work, then it'll send you a notification on Slack once your code has finished running. Potentially useful if your code takes several hours to run as it saves having to check on its progress. | |
To run, you'll need to install the following two libraries: | |
slackclient==1.2.1 | |
slacker==0.9.65 | |
And then sign up for a Slack API key. Once these two steps have been done you can run the following code, replacing the name and key values with your own. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(gganimate) | |
library(ggplot2) | |
library(dplyr) | |
library(reshape2) | |
# Get base n values | |
n <- 50 | |
base <- data.frame(idx = seq(2, n, by = 0.01)) | |
# Compute relative runtimes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Distributions, Random, LinearAlgebra, Plots, StatPlots | |
Random.seed!(123); | |
dims = 2 | |
precision_prior = 4 | |
cov_prior = Matrix{Float64}(I, dims, dims) | |
pre_prior = precision_prior*cov_prior | |
mu_prior = [-2, -4] | |
precision_t = 0.5 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# switch prefix to control-a, unmap b, allow double-a to go through | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# -r repeat time (Default 500 millis) | |
set -g repeat-time 2000 | |
# colors | |
set -g default-terminal "screen-256color" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gpflow | |
import tensorflow as tf | |
import matplotlib.pyplot as plt | |
from gpflow.models import GPModel, InternalDataTrainingLossMixin, GPR | |
from gpflow.kernels import SquaredExponential, Kernel | |
from gpflow.likelihoods import Gaussian | |
from gpflow.mean_functions import Zero | |
from gpflow.base import Parameter | |
from time import time | |
from gpflow.utilities import print_summary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
figure.figsize: 5.5, 2.5 | |
figure.constrained_layout.use: True | |
figure.autolayout: False | |
savefig.bbox: tight | |
figure.dpi: 120 | |
# Axes | |
axes.spines.left: True # display axis spines | |
axes.spines.bottom: True | |
axes.spines.top: False |