Questions tagged [hash]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
6 views

Feature hashing and interpretability

I am working on a classification project where nearly all raw features (~30) are categorical such as category ID, city, or responsible team ID, some with cardinality > 600. I am using a feature hasher ...
1
vote
0answers
15 views

Proper length of random nonce for hash calculation (blockchain)?

I have a string s and I need to calculate a nonce such that when appending the nonce to the string, the generated hash starts with a given sequence. The hash has 256 bits, so the number of ...
0
votes
0answers
19 views

How many hash buckets should I set with penalized logistic regression over large dataset

I am working with a logistic regression, and one of the predictors I am considering is a truncated ip address--as a proxy for location. I have about 200 million rows in the dataset but there are about ...
6
votes
1answer
1k views

Why would somebody use a hash function for creating a test/train split instead of random seed?

I'm going through some ML training material from Google (I can't post a link because I'm getting the material through my company). In the part about how to extract data and split it into train and ...
1
vote
0answers
101 views

project hash into a fixed number of buckets using salt

We currently generate hashes for user-ids in our system (using md5) and bucket them into range buckets (range is 0 to 100, buckets can be 0-30, 31-70, 71-100). This process works this way - we ...
1
vote
0answers
90 views

Uniformity of hash functions [closed]

I'm looking for references that discuss and compare the uniformity of well known hash functions. For example: How does the literature analyze/compare uniformity of hash functions? I.e. what methods ...