Skip to content

Instantly share code, notes, and snippets.

View ahlusar1989's full-sized avatar
๐Ÿ€
Let's Go!

Saran Ahluwalia ahlusar1989

๐Ÿ€
Let's Go!
View GitHub Profile
@ahlusar1989
ahlusar1989 / jupyter-google-cloud.md
Last active January 4, 2018 15:13 — forked from valentina-s/jupyter-google-cloud.md
Jupyter Notebook on Google Cloud Compute Instance

On Instance:

pip install jupyter[notebook]

jupyter notebook --generate-config

# nano .jupyter/jupyter_notebook_config.py

echo "c = get_config()
c.NotebookApp.ip = '*'
@ahlusar1989
ahlusar1989 / GibbsLDA.py
Created March 23, 2018 21:16 — forked from ChangUk/GibbsLDA.py
Collapsed Gibbs sampler for Latent Dirichlet Allocation
#-*- coding: utf-8 -*-
"""
GIBBS SAMPLING IMPLEMENTATION FOR LATENT DIRICHLET ALLOCATION (2003)
IMPLEMENTED BY CHANG-UK, PARK
DATA FORMAT: "DocID\t WordID\t FREQUENCY\n"
"""
import sys
import random
@ahlusar1989
ahlusar1989 / YeoJohnson.py
Created June 13, 2019 23:08 — forked from mesgarpour/YeoJohnson.py
Yeo-Johnson Transformation
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import warnings
import numpy as np
import pandas as pd
import sys
__author__ = "Mohsen Mesgarpour"
__copyright__ = "Copyright 2016, https://github.com/mesgarpour"
__credits__ = ["Mohsen Mesgarpour"]
@ahlusar1989
ahlusar1989 / snr-periodic.py
Created December 12, 2020 22:28 — forked from mbejger/snr-periodic.py
Matched filter and signal-to-noise for a periodic template
"""
Plot white noise with added sinusoidal signal
"""
import numpy as np
import matplotlib.pyplot as plt
import sys
import h5py
fs = 4096 # sampling rate [Hz]
T = 4 # duration [s]