Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Daniel Kohlsdorf dkohlsdorf

🏠
Working from home
Block or report user

Report or block dkohlsdorf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View embedding2012.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkohlsdorf
dkohlsdorf / dtw.pyx
Created Oct 4, 2019
Dynamic Time Warping Implementation in Cython
View dtw.pyx
import numpy as np
class DTW:
def __init__(self, n, m):
cdef double[:, :] dp = np.ones((n + 1, m + 1)) * float('inf')
self.dp = dp
self.n = n
self.m = m
@dkohlsdorf
dkohlsdorf / unsupervisedrecursivedolphinparsing.ipynb
Created Sep 25, 2019
UnsupervisedRecursiveDolphinParsing.ipynb
View unsupervisedrecursivedolphinparsing.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View KalmanFilters.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View convnet.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkohlsdorf
dkohlsdorf / DeleteWhistleFromClick.py
Last active Jul 15, 2019
Deleting Whistles From Clicks
View DeleteWhistleFromClick.py
import matplotlib.pyplot as plt
import numpy as np
import warnings
import os
from collections import namedtuple
from numpy.fft import fft, ifft
from scipy.io import wavfile
from scipy.ndimage import gaussian_filter
warnings.filterwarnings('ignore')
@dkohlsdorf
dkohlsdorf / camnet.js
Created Jul 9, 2019
WebCam and MobileNet in Tensorflow.js
View camnet.js
/**
* Object Recognition from Webcam
*
* by Daniel Kyu Hwa Kohlsdorf
* mailto: dkohlsdorf@gmail.com
*/
'use strict';
@dkohlsdorf
dkohlsdorf / triplet.py
Last active Jun 26, 2019
Triplet Loss Experiments For Audio Data with Tensorflow 2.0
View triplet.py
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import tensorflow.keras.layers as layers
import tensorflow.keras.losses as loss
import tensorflow_datasets.public_api as tfds
from sys import argv
from random import Random
from os import walk
@dkohlsdorf
dkohlsdorf / AutoDiff.ipynb
Last active Apr 5, 2019
Auto Differentiation To Latex
View AutoDiff.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkohlsdorf
dkohlsdorf / alignment_dtw.py
Last active Mar 19, 2019
Align A Bunch Of Videos. Second file using merge sort for joining the timestamps.
View alignment_dtw.py
'''
Align videos using Dynamic Time Warping
Given a set of video files with associated time stamp files,
the program creates a new set of aligned videos.
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
You can’t perform that action at this time.