Skip to content

Instantly share code, notes, and snippets.

View chenfengkg's full-sized avatar
💭
I may be slow to respond.

chenfengkg chenfengkg

💭
I may be slow to respond.
View GitHub Profile
@chenfengkg
chenfengkg / machine_learned_index.py
Created April 9, 2019 08:41 — forked from tokestermw/machine_learned_index.py
Using deep learning to approximate a B-Tree index from this paper: https://arxiv.org/abs/1712.01208 (The Case for Learned Index Structures)
import click
import torch
import torch.autograd
import torch.nn.functional as F
from torch.autograd import Variable
import os
import random
import math