Skip to content

Instantly share code, notes, and snippets.

View rikrd's full-sized avatar

Ricard Marxer rikrd

View GitHub Profile
@rikrd
rikrd / gammatone_apgf.py
Last active March 23, 2020 17:19
APGF (all pole gammatone filterbank) implementation in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
/*
** Copyright (C) 2020 Ricard Marxer
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 3 of the License, or

Keybase proof

I hereby claim:

  • I am rikrd on github.
  • I am ricard (https://keybase.io/ricard) on keybase.
  • I have a public key whose fingerprint is F9B3 89CC 1199 F243 D1FA 0A15 E414 FD5F 1872 F480

To claim this, I am signing this object:

@rikrd
rikrd / gpy_kernel_cheatsheet.py
Last active July 5, 2022 20:59
GPy Kernel Cheatsheet:: All the kernels in GPy (example realizations, covariance matrix, kernel equation)
%pylab inline
import numpy as np
import pylab as plt
import GPy
import re
def get_equation(kern):
match = re.search(r'(math::)(\r\n|\r|\n)*(?P<equation>.*)(\r\n|\r|\n)*', kern.__doc__)
return '' if match is None else match.group('equation').strip()