Skip to main content

Neighborhood Blending

PyPI - Python Version

Generally, the embedding used for any task is already pre-trained and generalized. However, for a specific task, Neighborhood Blending/mixing can be used. Here, we try to use the fact that a specific query/instance is primarily affected by its nearest neighbors only. Neighborhood Blending is a general technique and can be used in text data with pre-trained embedding or on images data. After the queries get encoded using any sentence transformer model and using Facebook AI Similarity Search (FAISS) to search for the similar embedding of multimedia documents, we obtained the top k nearest neighbors (in terms of similarity) of each given query.

Neighborhood Blending is used to make similar queries more distinct and closer to their neighbors. It makes the clusters more coherent.

Official repository: https://github.com/sonisanskar/Neighborhood-Blending

Features

  • Cross-platform: Windows, Mac, and Linux are officially supported.
  • Works with Python 2.7,3.5,3.6,3.7

Requires

  • numpy, pandas , faiss-cpu or faiss-gpu

Acknowledgements

Authors

🔗 Links

linkedin twitter

Support

For support, email soni.sanskar@gmail.com

Metadata

Release files for NeighborBlend 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NeighborBlend 0.3.0
File Size Uploaded
NeighborBlend-0.3.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for NeighborBlend 0.3.0
File Interpreter ABI Platform
NeighborBlend-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / NeighborBlend-0.3.0.tar.gz

Download URL NeighborBlend-0.3.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
785dff26d82bb2b843022aa319c8903b7fdfb4e41b90b8bacc3d299d276d6a90
BLAKE2b-256 checksum
How to use checksums
feb7ae26a129472d2fa9433a57dd1e3cf27643effff56202c542cbb8b749c31e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

Release files / NeighborBlend-0.3.0-py3-none-any.whl

Download URL NeighborBlend-0.3.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a922f55229631b81ed2e6825d408e9d5d380df141027442d56af4fdca1da787
BLAKE2b-256 checksum
How to use checksums
2a1fa985f327936c8864196475e796f714a79cd5bf4129af8fcbeecff20a29bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page