From e33d41e81e4782facef0ca42d39fd732c7262d18 Mon Sep 17 00:00:00 2001
From: Olivier Grisel <olivier.grisel@ensta.org>
Date: Wed, 18 Jan 2012 06:21:02 +0100
Subject: [PATCH] DOC: give usage example

---
 doc/developers/utilities.rst | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/developers/utilities.rst b/doc/developers/utilities.rst
index d05c3e0bc8..daf1edfc11 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
-- 
GitLab