software . 2019

ekzhu/datasketch: hashfunc to replace hashobj

Eric Zhu; Vadim Markovtsev; aastafiev; ae-foster; fpug; Wojciech Łukasiewicz; Titusz; Spandan Thakur; Kevin Mann;
Open Source
  • Published: 06 Jan 2019
  • Publisher: Zenodo
<p>Now support <code>hashfunc</code> parameter for MinHash and HyperLogLog. The old parameter <code>hashobj</code> is removed.</p> <pre><code class="lang-python"># Let&#39;s use MurmurHash3. import mmh3 # We need to define a new hash function that outputs an integer that # can be encoded in 32 bits. def _hash_func(d): return mmh3.hash32(d) # Use this function in MinHash constructor. m = MinHash(hashfunc=_hash_func) </code></pre>
Persistent Identifiers
Download fromView all 2 versions
Software . 2019
Provider: Datacite
Software . 2019
Provider: Zenodo
Any information missing or wrong?Report an Issue