Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NeighborBlend-0.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

NeighborBlend-0.3.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file NeighborBlend-0.3.0.tar.gz.

File metadata

  • Download URL: NeighborBlend-0.3.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for NeighborBlend-0.3.0.tar.gz
Algorithm Hash digest
SHA256 785dff26d82bb2b843022aa319c8903b7fdfb4e41b90b8bacc3d299d276d6a90
MD5 064cb5a78b743ef808227691d1119706
BLAKE2b-256 feb7ae26a129472d2fa9433a57dd1e3cf27643effff56202c542cbb8b749c31e

See more details on using hashes here.

File details

Details for the file NeighborBlend-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: NeighborBlend-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for NeighborBlend-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a922f55229631b81ed2e6825d408e9d5d380df141027442d56af4fdca1da787
MD5 caf65751b683feecb6b7d70d408853ed
BLAKE2b-256 2a1fa985f327936c8864196475e796f714a79cd5bf4129af8fcbeecff20a29bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page