Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Daniel Kohlsdorf dkohlsdorf

🏠
Working from home
View GitHub Profile
@dkohlsdorf
dkohlsdorf / nips.py
Last active Oct 29, 2020
Download all nips papers ever
View nips.py
from lxml import html
import requests
import urllib.request
BASE_URL = 'https://papers.nips.cc/'
page = requests.get(BASE_URL)
tree = html.fromstring(page.content)
books = [ href.attrib['href'] for href in tree.xpath('//a') if 'book' in href.attrib['href']]
@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 / triplet.py
Last active Jun 1, 2020
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 / 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.
@dkohlsdorf
dkohlsdorf / download_toronto.py
Last active Jan 19, 2020
Download Toronto Emotion Speech Set
View download_toronto.py
from lxml import html
import requests
import urllib.request
import re
import time
import os.path
HANDLE = '^/handle/[0-9]+/[0-9]+$'
BASE_URL = 'https://tspace.library.utoronto.ca'
page = requests.get(BASE_URL + '/handle/1807/24487')
View embedding2012.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.