Skip to content

Instantly share code, notes, and snippets.

View ashokkumarsundar's full-sized avatar

ashokkumarsundar

View GitHub Profile
@ashokkumarsundar
ashokkumarsundar / fourex.py
Created February 24, 2019 13:57 — forked from tartakynov/fourex.py
Fourier Extrapolation in Python
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
@ashokkumarsundar
ashokkumarsundar / understanding-word-vectors.ipynb
Created January 21, 2019 13:37 — forked from aparrish/understanding-word-vectors.ipynb
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.