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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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