This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import math | |
import numpy as np | |
import torch | |
from cuml.neighbors import NearestNeighbors | |
def cuml_kneighbors(query, data, n_neighbors): | |
knn = NearestNeighbors( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" /> | |
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script> | |
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script> | |
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' /> |
Install the nbconvert package, though you probably already have it if you are using jupyter. Put the nb2md
script from below in your path and make it executable (chmod u+x
).
- Add the following to your
~/.gitattributes
file*.ipynb diff=nb2md
- Run
git config --global diff.nb2md.textconv nb2md
- There is no third step. Go get some 🍦 instead.