python的一个最小计数草图
countminsketch的Python项目详细描述
count min sketch
==
这是一个极简主义的
`count min sketch<;http://en.wikipedia.org/wiki/count%e2%80%93min\sketch>;`
对于python来说,它有一些很酷的特性,比如:
-能够计算python可以散列的任何东西(数字、字符串、元组、inmutables、duck类型,等)。
-测试
-没有依赖关系
-没有外语,只有100%的python。
本软件由Rafael Carrascosa编写,您可以通过Gmail上的
Rafacarrascosa与我联系。
代码块::python
from countminsketch import countminsketch
sketch=countminsketch(1000,10)table size=1000,hash函数=10
sketch.add(“oh yeah”)
sketch.add(tuple())
sketch.add(1,value=123)
print sketch[“oh yeah”]\prints 1
print sketch[tuple()]打印草图〔1〕打印123(BR/>打印草图〔不存在〕0版< BR/>< BR> >安装< BR/>
==
这是一个极简主义的
`count min sketch<;http://en.wikipedia.org/wiki/count%e2%80%93min\sketch>;`
对于python来说,它有一些很酷的特性,比如:
-能够计算python可以散列的任何东西(数字、字符串、元组、inmutables、duck类型,等)。
-测试
-没有依赖关系
-没有外语,只有100%的python。
本软件由Rafael Carrascosa编写,您可以通过Gmail上的
Rafacarrascosa与我联系。
代码块::python
from countminsketch import countminsketch
sketch=countminsketch(1000,10)table size=1000,hash函数=10
sketch.add(“oh yeah”)
sketch.add(tuple())
sketch.add(1,value=123)
print sketch[“oh yeah”]\prints 1
print sketch[tuple()]打印草图〔1〕打印123(BR/>打印草图〔不存在〕0版< BR/>< BR> >安装< BR/>