A framework for representing sequences as embeddings.
Project description
Skip-Grammar
A framework for representing sequences as embeddings.
Models
Skip-gram Negative Sampling (SGNS)
Popular natural language processing models such as word2vec and bert can be repurposed to learn relationships from arbitrary sequences of items. Skip-gram Negative Sampling is such an algorithm part of the models module. This is implemented in PyTorch components or can be composed as a PyTorch Lightning module. Both are availble under the relevent namespaces skipgrammar.models.sgns and skipgrammar.models.lighting.sgns.
Datasets
Last.FM
The Last.FM Dataset-1K dataset is comprised of the listening history of approximately 1,000 users from the music service Last.FM. The dataset is availble at the project's main site here and also preprocessed here for ease of use. The variants in the dataset module use the latter.
MovieLens
The popular recommendation system dataset MovieLens is availble in three variants via the dataset module.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skipgrammar-0.1.3.tar.gz.
File metadata
- Download URL: skipgrammar-0.1.3.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffb11c845f3eee125d7ef9826b60a51bc1ef1615d4a1c16264402caa062d43ab
|
|
| MD5 |
65bee3b9da0a69b5a7676201b0d4f2eb
|
|
| BLAKE2b-256 |
2a95e9574dc504f73664ca0de4242807c627cd3b880c888ee90f5b3a80cdd6d3
|
File details
Details for the file skipgrammar-0.1.3-py3-none-any.whl.
File metadata
- Download URL: skipgrammar-0.1.3-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.12 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f84faf301714b21571a8b8512ad07c6d13a5c48ad356450f0765b888e0e1d7f
|
|
| MD5 |
8346009abbf84d34062fa757019d3612
|
|
| BLAKE2b-256 |
1315acba503691b5a29f1d9e98ed9e0de1d54bfbdb9684411563e6295438f613
|