Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a Pipeline abstraction #462

Merged
merged 35 commits into from
Aug 2, 2024
Merged

Conversation

mdekstrand
Copy link
Member

This advances #444 by implementing a Pipeline class for specifying and running recommender system pipelines.

@mdekstrand mdekstrand added the internals Internal infrastructure (parallelism, math, etc.) label Aug 1, 2024
@mdekstrand mdekstrand added this to the 2024.1 milestone Aug 1, 2024
Copy link

github-actions bot commented Aug 2, 2024

The GitHub 🤖 has run the tests on your PR.

Covered 93.18% of diff (coverage changed 0.08% from 92.12% to 92.20%).

origin/main...HEAD, staged and unstaged changes
  • lenskit/lenskit/pipeline/init.py (93.7%): Missing lines 105,157,225,289,291,387-388,406,415,473-474,477,483
  • lenskit/lenskit/pipeline/common.py (80.0%): Missing lines 28
  • lenskit/lenskit/pipeline/components.py (72.7%): Missing lines 47,75,81,108,129,135
  • lenskit/lenskit/pipeline/nodes.py (98.0%): Missing lines 87
  • lenskit/lenskit/pipeline/types.py (96.4%): Missing lines 65,118

Summary

  • Total: 337 lines
  • Missing: 23 lines
  • Coverage: 93%
Source Coverage Report
Name Stmts Miss Cover
lenskit-funksvd/lenskit/funksvd.py 187 8 96%
lenskit-hpf/lenskit/hpf.py 24 0 100%
lenskit-implicit/lenskit/implicit.py 94 9 90%
lenskit/lenskit/algorithms/__init__.py 67 8 88%
lenskit/lenskit/algorithms/als/__init__.py 3 0 100%
lenskit/lenskit/algorithms/als/common.py 129 2 98%
lenskit/lenskit/algorithms/als/explicit.py 121 3 98%
lenskit/lenskit/algorithms/als/implicit.py 112 1 99%
lenskit/lenskit/algorithms/basic.py 161 4 98%
lenskit/lenskit/algorithms/bias.py 150 3 98%
lenskit/lenskit/algorithms/knn/__init__.py 3 0 100%
lenskit/lenskit/algorithms/knn/item.py 303 17 94%
lenskit/lenskit/algorithms/knn/user.py 178 11 94%
lenskit/lenskit/algorithms/mf_common.py 61 0 100%
lenskit/lenskit/algorithms/ranking.py 75 11 85%
lenskit/lenskit/algorithms/svd.py 75 4 95%
lenskit/lenskit/batch/__init__.py 2 0 100%
lenskit/lenskit/batch/_predict.py 30 2 93%
lenskit/lenskit/batch/_recommend.py 46 4 91%
lenskit/lenskit/crossfold.py 136 2 99%
lenskit/lenskit/data/__init__.py 8 0 100%
lenskit/lenskit/data/checks.py 37 0 100%
lenskit/lenskit/data/dataset.py 364 19 95%
lenskit/lenskit/data/fetch.py 38 28 26%
lenskit/lenskit/data/items.py 176 11 94%
lenskit/lenskit/data/matrix.py 115 5 96%
lenskit/lenskit/data/movielens.py 96 18 81%
lenskit/lenskit/data/mtarray.py 57 3 95%
lenskit/lenskit/data/tables.py 25 0 100%
lenskit/lenskit/data/vocab.py 90 7 92%
lenskit/lenskit/diagnostics.py 4 0 100%
lenskit/lenskit/math/__init__.py 0 0 100%
lenskit/lenskit/math/solve.py 6 0 100%
lenskit/lenskit/metrics/__init__.py 0 0 100%
lenskit/lenskit/metrics/predict.py 32 0 100%
lenskit/lenskit/metrics/topn.py 212 1 99%
lenskit/lenskit/parallel/__init__.py 4 0 100%
lenskit/lenskit/parallel/chunking.py 20 1 95%
lenskit/lenskit/parallel/config.py 65 8 88%
lenskit/lenskit/parallel/invoker.py 31 2 94%
lenskit/lenskit/parallel/pool.py 54 9 83%
lenskit/lenskit/parallel/sequential.py 22 0 100%
lenskit/lenskit/parallel/serialize.py 51 1 98%
lenskit/lenskit/parallel/worker.py 43 3 93%
lenskit/lenskit/pipeline/__init__.py 205 13 94%
lenskit/lenskit/pipeline/common.py 5 1 80%
lenskit/lenskit/pipeline/components.py 22 6 73%
lenskit/lenskit/pipeline/nodes.py 49 1 98%
lenskit/lenskit/pipeline/types.py 56 2 96%
lenskit/lenskit/splitting/__init__.py 4 0 100%
lenskit/lenskit/splitting/holdout.py 56 4 93%
lenskit/lenskit/splitting/records.py 55 0 100%
lenskit/lenskit/splitting/split.py 27 6 78%
lenskit/lenskit/splitting/users.py 60 0 100%
lenskit/lenskit/topn.py 109 25 77%
lenskit/lenskit/util/__init__.py 72 19 74%
lenskit/lenskit/util/envcheck.py 57 44 23%
lenskit/lenskit/util/logging.py 19 0 100%
lenskit/lenskit/util/random.py 26 3 88%
lenskit/lenskit/util/test.py 103 19 82%
lenskit/lenskit/util/timing.py 28 0 100%
TOTAL 4460 348 92%

Copy link

github-actions bot commented Aug 2, 2024

The GitHub 🤖 has run the tests on your PR.

Covered 92.94% of diff (coverage changed 0.06% from 92.12% to 92.18%).

origin/main...HEAD, staged and unstaged changes
  • lenskit/lenskit/pipeline/init.py (95.1%): Missing lines 104,156,230,308,310,394,400
  • lenskit/lenskit/pipeline/common.py (80.0%): Missing lines 28
  • lenskit/lenskit/pipeline/components.py (72.7%): Missing lines 47,75,81,108,129,135
  • lenskit/lenskit/pipeline/nodes.py (98.0%): Missing lines 93
  • lenskit/lenskit/pipeline/runner.py (90.0%): Missing lines 51,53,76-77,106,111,115,133
  • lenskit/lenskit/pipeline/types.py (96.4%): Missing lines 65,118

Summary

  • Total: 354 lines
  • Missing: 25 lines
  • Coverage: 92%
Source Coverage Report
Name Stmts Miss Cover
lenskit-funksvd/lenskit/funksvd.py 187 8 96%
lenskit-hpf/lenskit/hpf.py 24 0 100%
lenskit-implicit/lenskit/implicit.py 94 9 90%
lenskit/lenskit/algorithms/__init__.py 67 8 88%
lenskit/lenskit/algorithms/als/__init__.py 3 0 100%
lenskit/lenskit/algorithms/als/common.py 129 2 98%
lenskit/lenskit/algorithms/als/explicit.py 121 3 98%
lenskit/lenskit/algorithms/als/implicit.py 112 1 99%
lenskit/lenskit/algorithms/basic.py 161 4 98%
lenskit/lenskit/algorithms/bias.py 150 3 98%
lenskit/lenskit/algorithms/knn/__init__.py 3 0 100%
lenskit/lenskit/algorithms/knn/item.py 303 17 94%
lenskit/lenskit/algorithms/knn/user.py 178 11 94%
lenskit/lenskit/algorithms/mf_common.py 61 0 100%
lenskit/lenskit/algorithms/ranking.py 75 11 85%
lenskit/lenskit/algorithms/svd.py 75 4 95%
lenskit/lenskit/batch/__init__.py 2 0 100%
lenskit/lenskit/batch/_predict.py 30 2 93%
lenskit/lenskit/batch/_recommend.py 46 4 91%
lenskit/lenskit/crossfold.py 136 2 99%
lenskit/lenskit/data/__init__.py 8 0 100%
lenskit/lenskit/data/checks.py 37 0 100%
lenskit/lenskit/data/dataset.py 364 19 95%
lenskit/lenskit/data/fetch.py 38 28 26%
lenskit/lenskit/data/items.py 176 11 94%
lenskit/lenskit/data/matrix.py 115 5 96%
lenskit/lenskit/data/movielens.py 96 18 81%
lenskit/lenskit/data/mtarray.py 57 3 95%
lenskit/lenskit/data/tables.py 25 0 100%
lenskit/lenskit/data/vocab.py 90 7 92%
lenskit/lenskit/diagnostics.py 4 0 100%
lenskit/lenskit/math/__init__.py 0 0 100%
lenskit/lenskit/math/solve.py 6 0 100%
lenskit/lenskit/metrics/__init__.py 0 0 100%
lenskit/lenskit/metrics/predict.py 32 0 100%
lenskit/lenskit/metrics/topn.py 212 1 99%
lenskit/lenskit/parallel/__init__.py 4 0 100%
lenskit/lenskit/parallel/chunking.py 20 1 95%
lenskit/lenskit/parallel/config.py 65 8 88%
lenskit/lenskit/parallel/invoker.py 31 2 94%
lenskit/lenskit/parallel/pool.py 54 9 83%
lenskit/lenskit/parallel/sequential.py 22 0 100%
lenskit/lenskit/parallel/serialize.py 51 1 98%
lenskit/lenskit/parallel/worker.py 43 3 93%
lenskit/lenskit/pipeline/__init__.py 142 7 95%
lenskit/lenskit/pipeline/common.py 5 1 80%
lenskit/lenskit/pipeline/components.py 22 6 73%
lenskit/lenskit/pipeline/nodes.py 49 1 98%
lenskit/lenskit/pipeline/runner.py 80 8 90%
lenskit/lenskit/pipeline/types.py 56 2 96%
lenskit/lenskit/splitting/__init__.py 4 0 100%
lenskit/lenskit/splitting/holdout.py 56 4 93%
lenskit/lenskit/splitting/records.py 55 0 100%
lenskit/lenskit/splitting/split.py 27 6 78%
lenskit/lenskit/splitting/users.py 60 0 100%
lenskit/lenskit/topn.py 109 25 77%
lenskit/lenskit/util/__init__.py 72 19 74%
lenskit/lenskit/util/envcheck.py 57 44 23%
lenskit/lenskit/util/logging.py 19 0 100%
lenskit/lenskit/util/random.py 26 3 88%
lenskit/lenskit/util/test.py 103 19 82%
lenskit/lenskit/util/timing.py 28 0 100%
TOTAL 4477 350 92%

Copy link

github-actions bot commented Aug 2, 2024

The GitHub 🤖 has run the tests on your PR.

Covered 92.94% of diff (coverage changed 0.06% from 92.12% to 92.18%).

origin/main...HEAD, staged and unstaged changes
  • lenskit/lenskit/pipeline/init.py (95.1%): Missing lines 104,156,230,308,310,394,400
  • lenskit/lenskit/pipeline/common.py (80.0%): Missing lines 28
  • lenskit/lenskit/pipeline/components.py (72.7%): Missing lines 47,79,85,112,133,139
  • lenskit/lenskit/pipeline/nodes.py (98.0%): Missing lines 93
  • lenskit/lenskit/pipeline/runner.py (90.0%): Missing lines 51,53,76-77,106,111,115,133
  • lenskit/lenskit/pipeline/types.py (96.4%): Missing lines 65,118

Summary

  • Total: 354 lines
  • Missing: 25 lines
  • Coverage: 92%
Source Coverage Report
Name Stmts Miss Cover
lenskit-funksvd/lenskit/funksvd.py 187 8 96%
lenskit-hpf/lenskit/hpf.py 24 0 100%
lenskit-implicit/lenskit/implicit.py 94 9 90%
lenskit/lenskit/algorithms/__init__.py 67 8 88%
lenskit/lenskit/algorithms/als/__init__.py 3 0 100%
lenskit/lenskit/algorithms/als/common.py 129 2 98%
lenskit/lenskit/algorithms/als/explicit.py 121 3 98%
lenskit/lenskit/algorithms/als/implicit.py 112 1 99%
lenskit/lenskit/algorithms/basic.py 161 4 98%
lenskit/lenskit/algorithms/bias.py 150 3 98%
lenskit/lenskit/algorithms/knn/__init__.py 3 0 100%
lenskit/lenskit/algorithms/knn/item.py 303 17 94%
lenskit/lenskit/algorithms/knn/user.py 178 11 94%
lenskit/lenskit/algorithms/mf_common.py 61 0 100%
lenskit/lenskit/algorithms/ranking.py 75 11 85%
lenskit/lenskit/algorithms/svd.py 75 4 95%
lenskit/lenskit/batch/__init__.py 2 0 100%
lenskit/lenskit/batch/_predict.py 30 2 93%
lenskit/lenskit/batch/_recommend.py 46 4 91%
lenskit/lenskit/crossfold.py 136 2 99%
lenskit/lenskit/data/__init__.py 8 0 100%
lenskit/lenskit/data/checks.py 37 0 100%
lenskit/lenskit/data/dataset.py 364 19 95%
lenskit/lenskit/data/fetch.py 38 28 26%
lenskit/lenskit/data/items.py 176 11 94%
lenskit/lenskit/data/matrix.py 115 5 96%
lenskit/lenskit/data/movielens.py 96 18 81%
lenskit/lenskit/data/mtarray.py 57 3 95%
lenskit/lenskit/data/tables.py 25 0 100%
lenskit/lenskit/data/vocab.py 90 7 92%
lenskit/lenskit/diagnostics.py 4 0 100%
lenskit/lenskit/math/__init__.py 0 0 100%
lenskit/lenskit/math/solve.py 6 0 100%
lenskit/lenskit/metrics/__init__.py 0 0 100%
lenskit/lenskit/metrics/predict.py 32 0 100%
lenskit/lenskit/metrics/topn.py 212 1 99%
lenskit/lenskit/parallel/__init__.py 4 0 100%
lenskit/lenskit/parallel/chunking.py 20 1 95%
lenskit/lenskit/parallel/config.py 65 8 88%
lenskit/lenskit/parallel/invoker.py 31 2 94%
lenskit/lenskit/parallel/pool.py 54 9 83%
lenskit/lenskit/parallel/sequential.py 22 0 100%
lenskit/lenskit/parallel/serialize.py 51 1 98%
lenskit/lenskit/parallel/worker.py 43 3 93%
lenskit/lenskit/pipeline/__init__.py 142 7 95%
lenskit/lenskit/pipeline/common.py 5 1 80%
lenskit/lenskit/pipeline/components.py 22 6 73%
lenskit/lenskit/pipeline/nodes.py 49 1 98%
lenskit/lenskit/pipeline/runner.py 80 8 90%
lenskit/lenskit/pipeline/types.py 56 2 96%
lenskit/lenskit/splitting/__init__.py 4 0 100%
lenskit/lenskit/splitting/holdout.py 56 4 93%
lenskit/lenskit/splitting/records.py 55 0 100%
lenskit/lenskit/splitting/split.py 27 6 78%
lenskit/lenskit/splitting/users.py 60 0 100%
lenskit/lenskit/topn.py 109 25 77%
lenskit/lenskit/util/__init__.py 72 19 74%
lenskit/lenskit/util/envcheck.py 57 44 23%
lenskit/lenskit/util/logging.py 19 0 100%
lenskit/lenskit/util/random.py 26 3 88%
lenskit/lenskit/util/test.py 103 19 82%
lenskit/lenskit/util/timing.py 28 0 100%
TOTAL 4477 350 92%

Copy link

github-actions bot commented Aug 2, 2024

The GitHub 🤖 has run the tests on your PR.

Covered 94.87% of diff (coverage changed 0.22% from 92.12% to 92.33%).

origin/main...HEAD, staged and unstaged changes
  • lenskit/lenskit/pipeline/init.py (95.1%): Missing lines 104,156,230,308,310,394,400
  • lenskit/lenskit/pipeline/common.py (80.0%): Missing lines 28
  • lenskit/lenskit/pipeline/components.py (72.7%): Missing lines 47,79,85,112,133,139
  • lenskit/lenskit/pipeline/nodes.py (98.0%): Missing lines 93
  • lenskit/lenskit/pipeline/runner.py (98.7%): Missing lines 112
  • lenskit/lenskit/pipeline/types.py (96.4%): Missing lines 65,118

Summary

  • Total: 351 lines
  • Missing: 18 lines
  • Coverage: 94%
Source Coverage Report
Name Stmts Miss Cover
lenskit-funksvd/lenskit/funksvd.py 187 8 96%
lenskit-hpf/lenskit/hpf.py 24 0 100%
lenskit-implicit/lenskit/implicit.py 94 9 90%
lenskit/lenskit/algorithms/__init__.py 67 8 88%
lenskit/lenskit/algorithms/als/__init__.py 3 0 100%
lenskit/lenskit/algorithms/als/common.py 129 2 98%
lenskit/lenskit/algorithms/als/explicit.py 121 3 98%
lenskit/lenskit/algorithms/als/implicit.py 112 1 99%
lenskit/lenskit/algorithms/basic.py 161 4 98%
lenskit/lenskit/algorithms/bias.py 150 3 98%
lenskit/lenskit/algorithms/knn/__init__.py 3 0 100%
lenskit/lenskit/algorithms/knn/item.py 303 17 94%
lenskit/lenskit/algorithms/knn/user.py 178 11 94%
lenskit/lenskit/algorithms/mf_common.py 61 0 100%
lenskit/lenskit/algorithms/ranking.py 75 11 85%
lenskit/lenskit/algorithms/svd.py 75 4 95%
lenskit/lenskit/batch/__init__.py 2 0 100%
lenskit/lenskit/batch/_predict.py 30 2 93%
lenskit/lenskit/batch/_recommend.py 46 4 91%
lenskit/lenskit/crossfold.py 136 2 99%
lenskit/lenskit/data/__init__.py 8 0 100%
lenskit/lenskit/data/checks.py 37 0 100%
lenskit/lenskit/data/dataset.py 364 19 95%
lenskit/lenskit/data/fetch.py 38 28 26%
lenskit/lenskit/data/items.py 176 11 94%
lenskit/lenskit/data/matrix.py 115 5 96%
lenskit/lenskit/data/movielens.py 96 18 81%
lenskit/lenskit/data/mtarray.py 57 3 95%
lenskit/lenskit/data/tables.py 25 0 100%
lenskit/lenskit/data/vocab.py 90 7 92%
lenskit/lenskit/diagnostics.py 4 0 100%
lenskit/lenskit/math/__init__.py 0 0 100%
lenskit/lenskit/math/solve.py 6 0 100%
lenskit/lenskit/metrics/__init__.py 0 0 100%
lenskit/lenskit/metrics/predict.py 32 0 100%
lenskit/lenskit/metrics/topn.py 212 1 99%
lenskit/lenskit/parallel/__init__.py 4 0 100%
lenskit/lenskit/parallel/chunking.py 20 1 95%
lenskit/lenskit/parallel/config.py 65 8 88%
lenskit/lenskit/parallel/invoker.py 31 2 94%
lenskit/lenskit/parallel/pool.py 54 9 83%
lenskit/lenskit/parallel/sequential.py 22 0 100%
lenskit/lenskit/parallel/serialize.py 51 1 98%
lenskit/lenskit/parallel/worker.py 43 3 93%
lenskit/lenskit/pipeline/__init__.py 142 7 95%
lenskit/lenskit/pipeline/common.py 5 1 80%
lenskit/lenskit/pipeline/components.py 22 6 73%
lenskit/lenskit/pipeline/nodes.py 49 1 98%
lenskit/lenskit/pipeline/runner.py 77 1 99%
lenskit/lenskit/pipeline/types.py 56 2 96%
lenskit/lenskit/splitting/__init__.py 4 0 100%
lenskit/lenskit/splitting/holdout.py 56 4 93%
lenskit/lenskit/splitting/records.py 55 0 100%
lenskit/lenskit/splitting/split.py 27 6 78%
lenskit/lenskit/splitting/users.py 60 0 100%
lenskit/lenskit/topn.py 109 25 77%
lenskit/lenskit/util/__init__.py 72 19 74%
lenskit/lenskit/util/envcheck.py 57 44 23%
lenskit/lenskit/util/logging.py 19 0 100%
lenskit/lenskit/util/random.py 26 3 88%
lenskit/lenskit/util/test.py 103 19 82%
lenskit/lenskit/util/timing.py 28 0 100%
TOTAL 4474 343 92%

Copy link

github-actions bot commented Aug 2, 2024

The GitHub 🤖 has run the tests on your PR.

Covered 95.24% of diff (coverage changed 0.25% from 92.12% to 92.36%).

origin/main...HEAD, staged and unstaged changes
  • lenskit/lenskit/data/dataset.py (100%)
  • lenskit/lenskit/pipeline/init.py (95.3%): Missing lines 104,156,230,308,310,400,406
  • lenskit/lenskit/pipeline/common.py (80.0%): Missing lines 28
  • lenskit/lenskit/pipeline/components.py (76.2%): Missing lines 51,57,83,104,110
  • lenskit/lenskit/pipeline/nodes.py (98.0%): Missing lines 93
  • lenskit/lenskit/pipeline/runner.py (98.7%): Missing lines 112
  • lenskit/lenskit/pipeline/types.py (96.4%): Missing lines 65,118

Summary

  • Total: 357 lines
  • Missing: 17 lines
  • Coverage: 95%
Source Coverage Report
Name Stmts Miss Cover
lenskit-funksvd/lenskit/funksvd.py 187 8 96%
lenskit-hpf/lenskit/hpf.py 24 0 100%
lenskit-implicit/lenskit/implicit.py 94 9 90%
lenskit/lenskit/algorithms/__init__.py 67 8 88%
lenskit/lenskit/algorithms/als/__init__.py 3 0 100%
lenskit/lenskit/algorithms/als/common.py 129 2 98%
lenskit/lenskit/algorithms/als/explicit.py 121 3 98%
lenskit/lenskit/algorithms/als/implicit.py 112 1 99%
lenskit/lenskit/algorithms/basic.py 161 4 98%
lenskit/lenskit/algorithms/bias.py 150 3 98%
lenskit/lenskit/algorithms/knn/__init__.py 3 0 100%
lenskit/lenskit/algorithms/knn/item.py 303 17 94%
lenskit/lenskit/algorithms/knn/user.py 178 11 94%
lenskit/lenskit/algorithms/mf_common.py 61 0 100%
lenskit/lenskit/algorithms/ranking.py 75 11 85%
lenskit/lenskit/algorithms/svd.py 75 4 95%
lenskit/lenskit/batch/__init__.py 2 0 100%
lenskit/lenskit/batch/_predict.py 30 2 93%
lenskit/lenskit/batch/_recommend.py 46 4 91%
lenskit/lenskit/crossfold.py 136 2 99%
lenskit/lenskit/data/__init__.py 8 0 100%
lenskit/lenskit/data/checks.py 37 0 100%
lenskit/lenskit/data/dataset.py 364 19 95%
lenskit/lenskit/data/fetch.py 38 28 26%
lenskit/lenskit/data/items.py 176 11 94%
lenskit/lenskit/data/matrix.py 115 5 96%
lenskit/lenskit/data/movielens.py 96 18 81%
lenskit/lenskit/data/mtarray.py 57 3 95%
lenskit/lenskit/data/tables.py 25 0 100%
lenskit/lenskit/data/vocab.py 90 7 92%
lenskit/lenskit/diagnostics.py 4 0 100%
lenskit/lenskit/math/__init__.py 0 0 100%
lenskit/lenskit/math/solve.py 6 0 100%
lenskit/lenskit/metrics/__init__.py 0 0 100%
lenskit/lenskit/metrics/predict.py 32 0 100%
lenskit/lenskit/metrics/topn.py 212 1 99%
lenskit/lenskit/parallel/__init__.py 4 0 100%
lenskit/lenskit/parallel/chunking.py 20 1 95%
lenskit/lenskit/parallel/config.py 65 8 88%
lenskit/lenskit/parallel/invoker.py 31 2 94%
lenskit/lenskit/parallel/pool.py 54 9 83%
lenskit/lenskit/parallel/sequential.py 22 0 100%
lenskit/lenskit/parallel/serialize.py 51 1 98%
lenskit/lenskit/parallel/worker.py 43 3 93%
lenskit/lenskit/pipeline/__init__.py 148 7 95%
lenskit/lenskit/pipeline/common.py 5 1 80%
lenskit/lenskit/pipeline/components.py 21 5 76%
lenskit/lenskit/pipeline/nodes.py 49 1 98%
lenskit/lenskit/pipeline/runner.py 77 1 99%
lenskit/lenskit/pipeline/types.py 56 2 96%
lenskit/lenskit/splitting/__init__.py 4 0 100%
lenskit/lenskit/splitting/holdout.py 56 4 93%
lenskit/lenskit/splitting/records.py 55 0 100%
lenskit/lenskit/splitting/split.py 27 6 78%
lenskit/lenskit/splitting/users.py 60 0 100%
lenskit/lenskit/topn.py 109 25 77%
lenskit/lenskit/util/__init__.py 72 19 74%
lenskit/lenskit/util/envcheck.py 57 44 23%
lenskit/lenskit/util/logging.py 19 0 100%
lenskit/lenskit/util/random.py 26 3 88%
lenskit/lenskit/util/test.py 103 19 82%
lenskit/lenskit/util/timing.py 28 0 100%
TOTAL 4479 342 92%

Copy link

github-actions bot commented Aug 2, 2024

The GitHub 🤖 has run the tests on your PR.

Covered 95.57% of diff (coverage changed 0.28% from 92.12% to 92.39%).

origin/main...HEAD, staged and unstaged changes
  • lenskit/lenskit/data/dataset.py (100%)
  • lenskit/lenskit/pipeline/init.py (96.1%): Missing lines 162,236,314,316,406,412
  • lenskit/lenskit/pipeline/common.py (80.0%): Missing lines 28
  • lenskit/lenskit/pipeline/components.py (76.2%): Missing lines 51,57,83,104,110
  • lenskit/lenskit/pipeline/nodes.py (98.0%): Missing lines 93
  • lenskit/lenskit/pipeline/runner.py (98.7%): Missing lines 112
  • lenskit/lenskit/pipeline/types.py (96.4%): Missing lines 65,118

Summary

  • Total: 361 lines
  • Missing: 16 lines
  • Coverage: 95%
Source Coverage Report
Name Stmts Miss Cover
lenskit-funksvd/lenskit/funksvd.py 187 8 96%
lenskit-hpf/lenskit/hpf.py 24 0 100%
lenskit-implicit/lenskit/implicit.py 94 9 90%
lenskit/lenskit/algorithms/__init__.py 67 8 88%
lenskit/lenskit/algorithms/als/__init__.py 3 0 100%
lenskit/lenskit/algorithms/als/common.py 129 2 98%
lenskit/lenskit/algorithms/als/explicit.py 121 3 98%
lenskit/lenskit/algorithms/als/implicit.py 112 1 99%
lenskit/lenskit/algorithms/basic.py 161 4 98%
lenskit/lenskit/algorithms/bias.py 150 3 98%
lenskit/lenskit/algorithms/knn/__init__.py 3 0 100%
lenskit/lenskit/algorithms/knn/item.py 303 17 94%
lenskit/lenskit/algorithms/knn/user.py 178 11 94%
lenskit/lenskit/algorithms/mf_common.py 61 0 100%
lenskit/lenskit/algorithms/ranking.py 75 11 85%
lenskit/lenskit/algorithms/svd.py 75 4 95%
lenskit/lenskit/batch/__init__.py 2 0 100%
lenskit/lenskit/batch/_predict.py 30 2 93%
lenskit/lenskit/batch/_recommend.py 46 4 91%
lenskit/lenskit/crossfold.py 136 2 99%
lenskit/lenskit/data/__init__.py 8 0 100%
lenskit/lenskit/data/checks.py 37 0 100%
lenskit/lenskit/data/dataset.py 364 19 95%
lenskit/lenskit/data/fetch.py 38 28 26%
lenskit/lenskit/data/items.py 176 11 94%
lenskit/lenskit/data/matrix.py 115 5 96%
lenskit/lenskit/data/movielens.py 96 18 81%
lenskit/lenskit/data/mtarray.py 57 3 95%
lenskit/lenskit/data/tables.py 25 0 100%
lenskit/lenskit/data/vocab.py 90 7 92%
lenskit/lenskit/diagnostics.py 4 0 100%
lenskit/lenskit/math/__init__.py 0 0 100%
lenskit/lenskit/math/solve.py 6 0 100%
lenskit/lenskit/metrics/__init__.py 0 0 100%
lenskit/lenskit/metrics/predict.py 32 0 100%
lenskit/lenskit/metrics/topn.py 212 1 99%
lenskit/lenskit/parallel/__init__.py 4 0 100%
lenskit/lenskit/parallel/chunking.py 20 1 95%
lenskit/lenskit/parallel/config.py 65 8 88%
lenskit/lenskit/parallel/invoker.py 31 2 94%
lenskit/lenskit/parallel/pool.py 54 9 83%
lenskit/lenskit/parallel/sequential.py 22 0 100%
lenskit/lenskit/parallel/serialize.py 51 1 98%
lenskit/lenskit/parallel/worker.py 43 3 93%
lenskit/lenskit/pipeline/__init__.py 152 6 96%
lenskit/lenskit/pipeline/common.py 5 1 80%
lenskit/lenskit/pipeline/components.py 21 5 76%
lenskit/lenskit/pipeline/nodes.py 49 1 98%
lenskit/lenskit/pipeline/runner.py 77 1 99%
lenskit/lenskit/pipeline/types.py 56 2 96%
lenskit/lenskit/splitting/__init__.py 4 0 100%
lenskit/lenskit/splitting/holdout.py 56 4 93%
lenskit/lenskit/splitting/records.py 55 0 100%
lenskit/lenskit/splitting/split.py 27 6 78%
lenskit/lenskit/splitting/users.py 60 0 100%
lenskit/lenskit/topn.py 109 25 77%
lenskit/lenskit/util/__init__.py 72 19 74%
lenskit/lenskit/util/envcheck.py 57 44 23%
lenskit/lenskit/util/logging.py 19 0 100%
lenskit/lenskit/util/random.py 26 3 88%
lenskit/lenskit/util/test.py 103 19 82%
lenskit/lenskit/util/timing.py 28 0 100%
TOTAL 4483 341 92%

@mdekstrand mdekstrand marked this pull request as ready for review August 2, 2024 20:08
@mdekstrand mdekstrand merged commit b157854 into lenskit:main Aug 2, 2024
38 checks passed
@mdekstrand mdekstrand deleted the feature/pipeline branch August 2, 2024 20:09
@mdekstrand mdekstrand added pipeline LensKit pipeline abstraction and removed internals Internal infrastructure (parallelism, math, etc.) labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipeline LensKit pipeline abstraction
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant