A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://scikit-learn.org/stable/developers/../modules/generated/sklearn.utils.murmurhash3_32.html below:

murmurhash3_32 — scikit-learn 1.7.0 documentation

murmurhash3_32#
sklearn.utils.murmurhash3_32(key, seed=0, positive=False)#

Compute the 32bit murmurhash3 of key at seed.

The underlying implementation is MurmurHash3_x86_32 generating low latency 32bits hash suitable for implementing lookup tables, Bloom filters, count min sketch or feature hashing.

Parameters:
keynp.int32, bytes, unicode or ndarray of dtype=np.int32

The physical object to hash.

seedint, default=0

Integer seed for the hashing algorithm.

positivebool, default=False
True: the results is casted to an unsigned int

from 0 to 2 ** 32 - 1

False: the results is casted to a signed int

from -(2 ** 31) to 2 ** 31 - 1

Examples

>>> from sklearn.utils import murmurhash3_32
>>> murmurhash3_32(b"Hello World!", seed=42)
3565178

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4