Skip to content

Instantly share code, notes, and snippets.

View maxidl's full-sized avatar

Max Idahl maxidl

  • Hanover, Germany
View GitHub Profile
@maxidl
maxidl / imagenet_idx_to_label.json
Last active June 21, 2020 19:04
ImageNet dataset mapping from index to human-readable class label in proper json format.
{
"0": "tench, Tinca tinca",
"1": "goldfish, Carassius auratus",
"2": "great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias",
"3": "tiger shark, Galeocerdo cuvieri",
"4": "hammerhead, hammerhead shark",
"5": "electric ray, crampfish, numbfish, torpedo",
"6": "stingray",
"7": "cock",
"8": "hen",
@maxidl
maxidl / tmux.conf
Last active February 24, 2020 23:33
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
import cudf
import cugraph
from numba import cuda
from numba.cuda.random import create_xoroshiro128p_states, xoroshiro128p_uniform_float32
import numpy as np
# gdf = cudf.read_csv('zachary.ssv', header=None, sep=' ', dtype=['int32', 'int32'])
gdf = cudf.read_csv('Flickr-labelled.edgelist', header=None, sep=' ', dtype=['int32', 'int32'])
gdf.columns = ['src', 'dest']
gdf = gdf.sort_values(by='src')
@maxidl
maxidl / deepwalk.py
Created April 22, 2019 20:44
Minimalist deepwalk implementation
import numpy as np
import pandas as pd
from scipy import sparse
from pathlib import Path
from joblib import Parallel, delayed
from itertools import chain
from random import shuffle
from tqdm import tqdm
from gensim.models import Word2Vec
import logging
@maxidl
maxidl / 1 Collection of useful Resources
Last active April 5, 2018 11:47
Collection of resources
We couldn’t find that file to show.