{"id":23841863,"url":"https://github.com/johnpertoft/spherical-hashing","last_synced_at":"2026-02-25T16:34:36.282Z","repository":{"id":57474913,"uuid":"292498509","full_name":"johnPertoft/spherical-hashing","owner":"johnPertoft","description":"A Tensorflow 2 implementation of Spherical Hashing","archived":false,"fork":false,"pushed_at":"2020-09-08T15:34:42.000Z","size":14,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T23:06:31.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnPertoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-03T07:29:18.000Z","updated_at":"2024-09-27T05:37:24.000Z","dependencies_parsed_at":"2022-09-10T04:05:00.635Z","dependency_job_id":null,"html_url":"https://github.com/johnPertoft/spherical-hashing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnPertoft/spherical-hashing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnPertoft%2Fspherical-hashing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnPertoft%2Fspherical-hashing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnPertoft%2Fspherical-hashing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnPertoft%2Fspherical-hashing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnPertoft","download_url":"https://codeload.github.com/johnPertoft/spherical-hashing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnPertoft%2Fspherical-hashing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259712373,"owners_count":22900034,"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-02T18:21:33.507Z","updated_at":"2026-02-25T16:34:36.240Z","avatar_url":"https://github.com/johnPertoft.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spherical Hashing\nA Tensorflow 2 implementation of [Spherical Hashing](https://ieeexplore.ieee.org/document/6248024).\n\nSpherical hashing is a way to compute a binary encoding of a feature vector while still maintaining\nspatial coherence. This binary encoding can then be used for an approximate nearest neighbor \nsolution since the compactness of this representation allows for faster neighbor search.\n\n## Usage\n```\nfrom spherical_hashing import train_spherical_hashing\nimport tensorflow as tf\n\nx_train = tf.random.uniform(shape=(1000, 512), minval=-10.0, maxval=10.0)\nsph_model = train_spherical_hashing_model(x_train, n_bits=32)\n\nx_test = tf.random.uniform(shape=(100, 512), minval=-10.0, maxval=10.0)\nbits = sph_model(x_test, apply_pack_bits=True)\n```\n\n## Installation\n```\npip install tf-spherical-hashing\n```\n\n## Development\n\n### Run tests\n```\n./scripts/run-tests.sh\n```\n\n### Publish pip package\n```\n./scripts/publish.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnpertoft%2Fspherical-hashing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnpertoft%2Fspherical-hashing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnpertoft%2Fspherical-hashing/lists"}