There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}- Tag markup (which cannot resolve to text) is surrounded by
| # Note – this is not a bash script (some of the steps require reboot) | |
| # I named it .sh just so Github does correct syntax highlighting. | |
| # | |
| # This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5 | |
| # | |
| # The CUDA part is mostly based on this excellent blog post: | |
| # http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ | |
| # Install various packages | |
| sudo apt-get update |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}| * |
| import numpy as np | |
| import pylab as pl | |
| from numpy import fft | |
| def fourierExtrapolation(x, n_predict): | |
| n = x.size | |
| n_harm = 10 # number of harmonics in model | |
| t = np.arange(0, n) | |
| p = np.polyfit(t, x, 1) # find linear trend in x | |
| x_notrend = x - p[0] * t # detrended x |