{"id":24143832,"url":"https://github.com/dnbaker/wmh","last_synced_at":"2025-09-19T12:32:26.012Z","repository":{"id":54494865,"uuid":"334766594","full_name":"dnbaker/wmh","owner":"dnbaker","description":"Weighted Minhash Code","archived":false,"fork":false,"pushed_at":"2021-02-21T00:14:02.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-01T16:46:27.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnbaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-31T22:04:29.000Z","updated_at":"2022-02-13T05:23:40.000Z","dependencies_parsed_at":"2022-08-13T17:40:53.417Z","dependency_job_id":null,"html_url":"https://github.com/dnbaker/wmh","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fwmh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fwmh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fwmh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fwmh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnbaker","download_url":"https://codeload.github.com/dnbaker/wmh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233570525,"owners_count":18695859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-12T05:45:42.280Z","updated_at":"2025-09-19T12:32:20.719Z","avatar_url":"https://github.com/dnbaker.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Contains re-implementations of data structures from https://dl.acm.org/doi/10.1145/3219819.3220089 and https://arxiv.org/abs/1911.00675, as well as Python bindings.\n\n\nInstallation:\n```bash\ngit clone --recursive https://github.com/dnbaker/wmh\ncd wmh/python\npython3 setup.py install\n```\n\nUse:\n```python\nimport wmh\nimport numpy as np\n\nweights = np.random.rand(1000)\nids = np.random(100000, size=(1000,))\nsignature_size = 500\nsigs = [wmh.hash(weights, ids, m=signature_size, stype=sketcher) for sketcher in\n        (\"bmh1\", \"bmh2\", \"pmh1\", \"phm1a\")]\n```\n\nPMinHash effectively normalizes all counts, while bmh treats the id, w pairs as weighted elements in a weighted set.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbaker%2Fwmh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnbaker%2Fwmh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbaker%2Fwmh/lists"}