Skip to main content

embedding-based item nearest neighborhoods extraction

Project description

DeepNeighbor

Python Versions PyPI Version license GitHub repo size Downloads

DeepNeighbor is a High-level,Flexible and Extendible package for embedding-based information retrieval from user-item interaction logs. Just as the name suggested, 'deep' means deep learning models to get user/item embeddings, while 'neighbor' means approximate nearest neighbor search in the embedding space.
It mainly has two parts : Embed step and Search step by the following codes:

model.train(),which generates embeddings for users and items (Deep),
model.search(), which looks for Approximate nearest neighbor for seed user/item (Neighbor) .

Install

pip install deepneighbor

How To Use

from deepneighbor.embed import Embed

model = Embed(data)
model.train()
model.search(seed = 'Louis', k=10)

Input format

The input data for the Embed() should be a pandas DataFrame with two columns in order: 'user' and 'item'. For each user, the item are recommended to be ordered by time.

Models

  • word2vec
  • Siamese Network with triple loss
  • deepwalk
  • graph convolutional network
  • matrix factorization
  • graph attention network

Examples

TBD

License

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

deepneighbor-0.2.6.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

deepneighbor-0.2.6-py3-none-any.whl (13.8 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