Neighborhood Blending
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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| NeighborBlend-0.3.0.tar.gz | 3.3 kB | Without provenance | Details for NeighborBlend-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| NeighborBlend-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for NeighborBlend-0.3.0-py3-none-any.whl |
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
|
Security for NeighborBlend 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.