Skip to content
Snippets Groups Projects
Commit e33d41e8 authored by Olivier Grisel's avatar Olivier Grisel
Browse files

DOC: give usage example

parent c6f17c08
No related branches found
No related tags found
No related merge requests found
......@@ -270,7 +270,14 @@ Hash Functions
`MurmurHash3_x86_32` C++ non cryptographic hash function. This hash
function is suitable for implementing lookup tables, Bloom filters,
Count Min Sketch, feature hashing and implicitly defined sparse
random projections.
random projections::
>>> from sklearn.utils import murmurhash3_32
>>> murmurhash3_32("some feature", seed=0)
-384616559
>>> murmurhash3_32("some feature", seed=0, positive=True)
3910350737L
The ``sklearn.utils.murmurhash`` module can also be "cimported" from
other cython modules so as to benefit from the high performance of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment