Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (19 sloc) 468 Bytes
#!/usr/bin/env python
# encoding: utf-8
Created by Hilary Mason on 2011-02-18.
Copyright (c) 2011 Hilary Mason. All rights reserved.
import sys, os
import numpy
from hcluster import *
class TagClustering(object):
def __init__(self):
v1 = [0,0,0,1]
v2 = [0,1,1,1]
print euclidean(v1, v2)
print cityblock(v1, v2)
print jaccard(v1, v2)
if __name__ == '__main__':
t = TagClustering()
Something went wrong with that request. Please try again.