embedding-based item nearest neighborhoods extraction
Project description
DeepNeighbor
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for deepneighbor-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2bce053d20db324d6c47474790fb2dbc09891a8410b319201aba0e4c1ee0e9 |
|
MD5 | 2b894de0622b9a77f2d02bff456c4e79 |
|
BLAKE2b-256 | 605a99400e0b3f9527fb961a472257b2ba9e1b0b46b74fe8b2b282cc45ff9599 |