Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Daniel Kohlsdorf dkohlsdorf

🏠
Working from home
View GitHub Profile
@dkohlsdorf
dkohlsdorf / label_files.py
Created Aug 31, 2020
Labeling By Mayority
View label_files.py
import shutil
import os
import pandas as pd
import numpy as np
def type_label(x):
labels = np.zeros(4)
for i in x:
labels[i] += 1
return np.argmax(labels)
@dkohlsdorf
dkohlsdorf / Regexp.ipynb
Last active Jul 29, 2020
Learning regular expressions from data using genetic programming
View Regexp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkohlsdorf
dkohlsdorf / FixAiff.ipynb
Last active Jun 23, 2020
Fixing AIFF File in python
View FixAiff.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkohlsdorf
dkohlsdorf / Dendrogram.ipynb
Created Mar 15, 2020
traverse agglomerative clustering sklearn
View Dendrogram.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkohlsdorf
dkohlsdorf / RecursiveNNEager.ipynb
Created Mar 15, 2020
Recursive Auto Encoder With Nodes
View RecursiveNNEager.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dkohlsdorf
dkohlsdorf / RecursiveNNEager.ipynb
Created Mar 12, 2020
Recursive Auto Encoder in Tensorflow 2.0
View RecursiveNNEager.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
You can’t perform that action at this time.