Skip to content

Commit af09fbf

Browse files
authored
Add examples (#102)
* Let the evaluator accept CSR matrix for `per_user_recommendable_items`. * test for neumf datamanager * Add neumf type evaluation example
1 parent a5a0de8 commit af09fbf

File tree

15 files changed

+1219
-67
lines changed

15 files changed

+1219
-67
lines changed

.github/workflows/run-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
CXXFLAGS="-O0 -g -coverage" pip install -e .
2121
- name: Run pytest
2222
run: |
23-
pip install pytest pytest-cov
23+
pip install pytest pytest-mock pytest-cov
2424
pip install lightfm jaxlib jax dm-haiku optax
2525
pytest --cov=./irspack tests/
2626
- name: Generate coverage (ubuntu)

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
CIBW_SKIP: "${{ matrix.cibw.skip || '' }}"
3636
CIBW_ENVIRONMENT: "${{ matrix.cibw.env || '' }}"
3737
CIBW_TEST_COMMAND: pytest {project}/tests
38-
CIBW_TEST_REQUIRES: pytest
38+
CIBW_TEST_REQUIRES: pytest pytest-mock
3939
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
4040
CIBW_MANYLINUX_I686_IMAGE: "${{ matrix.cibw.manylinux_image }}"
4141
CIBW_MANYLINUX_AARCH64_IMAGE: "${{ matrix.cibw.manylinux_image }}"

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# irspack - Implicit recommender systems for practitioners.
1+
# irspack - Implicit recommender systems for practitioners
22

33
[![Python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue)](https://www.python.org)
44
[![pypi](https://img.shields.io/pypi/v/irspack.svg)](https://pypi.python.org/pypi/irspack)

docs/source/api_reference.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,16 @@ Utilities
118118

119119
ItemIDMapper
120120
IDMapper
121+
122+
.. currentmodule:: irspack.dataset
123+
124+
Dataset
125+
-------
126+
127+
.. autosummary::
128+
:toctree: api_reference
129+
:nosignatures:
130+
131+
MovieLens1MDataManager
132+
MovieLens100KDataManager
133+
MovieLens20MDataManager

0 commit comments

Comments
 (0)