neighbors
A package to perform collaborative filtering on emotion datasets.
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 7 committers (14.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.1%) to scientific vocabulary
Keywords
Repository
A package to perform collaborative filtering on emotion datasets.
Basic Info
- Host: GitHub
- Owner: cosanlab
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://cosanlab.github.io/neighbors
- Size: 6.13 MB
Statistics
- Stars: 10
- Watchers: 3
- Forks: 9
- Open Issues: 14
- Releases: 0
Topics
Metadata Files
README.md
Neighbors
A Python package for collaborative filtering on social datasets
Installation
- Pip (official releases):
pip install neighbors - Github (bleeding edge):
pip install git+https://github.com/cosanlab/neighbors.git
Getting started
The best way to learn how to use the package is by checking out the documentation site which contains usage tutorials as well as API documentation for all package functionality.
Quick Demo Usage
```python
from neighbors.models import NNMFsgd
from neighbors.utils createuseritemmatrix, estimate_performance
Assuming data is 3 column pandas df with 'User', 'Item', 'Rating'
convert it to a (possibly sparse) user x item matrix
mat = createuseritem_matrix(df)
Initialize a model
model = NNMF_sgd(mat)
Fit
model.fit()
If data are time-series optionally fit model using dilation
to leverage auto-correlation and improve performance
model.fit(dilatebynsamples=60)
Visualize results
model.plot_predictions()
Estimate algorithm performance using
Repeated refitting with random masking (dense data)
Or cross-validation (sparse data)
groupresults, userresults = estimateperformance(NNMFsgd, mat) ```
Algorithms
Currently supported algorithms include:
Mean- a baseline modelKNN- k-nearest neighborsNNMF_mult- non-negative matrix factorization trained via multiplicative updatingNNMF_sgd- non-negative matrix factorization trained via stochastic gradient descent
Owner
- Name: Computational Social Affective Neuroscience Laboratory
- Login: cosanlab
- Kind: organization
- Location: Hanover, NH
- Website: http://cosanlab.com/
- Repositories: 8
- Profile: https://github.com/cosanlab
GitHub Events
Total
- Issues event: 1
- Fork event: 1
Last Year
- Issues event: 1
- Fork event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| ejolly | e****y@g****m | 105 |
| Luke Chang | l****g@g****m | 67 |
| ljchang | l****g@d****u | 16 |
| Eshin Jolly | e****y | 10 |
| Nathan Greenstein | n****5@g****m | 4 |
| Eric Andrews | e****c@i****m | 1 |
| jcheong | j****8@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 24
- Total pull requests: 21
- Average time to close issues: over 1 year
- Average time to close pull requests: 15 days
- Total issue authors: 6
- Total pull request authors: 5
- Average comments per issue: 0.38
- Average comments per pull request: 0.71
- Merged pull requests: 15
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ljchang (15)
- ejolly (4)
- jcheong0428 (1)
- Marissa-Clark (1)
- Ben-FCC (1)
- infiniteline (1)
Pull Request Authors
- ejolly (9)
- ljchang (7)
- ngreenstein (3)
- jcheong0428 (1)
- infiniteline (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 436 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 2
(may contain duplicates) - Total versions: 2
- Total maintainers: 1
pypi.org: neighbors
A Python package for performing collaborative filtering on social and emotion datasets
- Homepage: http://github.com/cosanlab/neighbors
- Documentation: https://neighbors.readthedocs.io/
- License: MIT
-
Latest release: 0.1.0
published over 4 years ago
Rankings
Maintainers (1)
pypi.org: burnt-ends
A Python package containing modular, well-tested, utility and statistical functions handy for scientific computing and analysis.
- Homepage: http://github.com/cosanlab/neighbors
- Documentation: https://burnt-ends.readthedocs.io/
- License: MIT
-
Latest release: 0.0.1
published about 3 years ago
Rankings
Maintainers (1)
Dependencies
- black * development
- mkdocs * development
- mkdocs-jupyter * development
- mkdocs-material * development
- mkdocstrings * development
- matplotlib *
- numba *
- numpy *
- pandas >=1.0
- scipy *
- seaborn *