Skip to content

Generate balanced uint64 hash for string. Widely used in the generation of feature id in machine learning.

Notifications You must be signed in to change notification settings

formath/string2sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

string2sign

Generate balanced uint64 hash for string. It's very efficient in the generation of feature id in machine learning. Several companies, such as Baidu and Meituan, have beening used this widely in ads ctr prediction and other products.

For use, please include include/ul_sign.h and call this function.

int create_sign_fs64(const char* psrc, int slen, uint64_t* sign);
  • psrc: input string
  • slen: input string length
  • sign: uint64_t sign
  • return value: 0 successful, others failed

About

Generate balanced uint64 hash for string. Widely used in the generation of feature id in machine learning.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published