Skip to content

Instantly share code, notes, and snippets.

View Hippogriff's full-sized avatar

Gopal Sharma Hippogriff

View GitHub Profile
def knn(x, k1, k2):
batch_size = x.shape[0]
indices = np.arange(0, k2, k2 // k1)
with torch.no_grad():
distances = []
for b in range(batch_size):

Keybase proof

I hereby claim:

  • I am godofprobability on github.
  • I am philae (https://keybase.io/philae) on keybase.
  • I have a public key whose fingerprint is 273F FEE4 F610 6798 8FF5 B17A 9CFA 7D1F 2135 2708

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am godofprobability on github.
  • I am philae (https://keybase.io/philae) on keybase.
  • I have a public key whose fingerprint is 1925 12E9 0800 A69F 4EEA F0DB 8D3A 5681 7093 4C6A

To claim this, I am signing this object:

{
"_notes": "Faculty graph scraped from https://people.cs.umass.edu/~emery/misc/collaboration",
"directed": false,
"graph": {},
"links": [
{
"source": 0,
"target": 32
},
{