Skip to content

Instantly share code, notes, and snippets.

View karanraj22's full-sized avatar

Karanraj Singh Saini karanraj22

View GitHub Profile
@karanraj22
karanraj22 / machine_learned_index.py
Created April 8, 2018 08:37 — 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