diff --git a/doc/developers/utilities.rst b/doc/developers/utilities.rst index d05c3e0bc8062985ca864c06146beee01ca0045a..daf1edfc1177df00eb9b09d5b40bf4b418b5d6ab 100644 --- a/doc/developers/utilities.rst +++ b/doc/developers/utilities.rst @@ -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