illoominate 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- illoominate-0.1.0/.github/workflows/CI.yml +179 -0
- illoominate-0.1.0/.gitignore +79 -0
- illoominate-0.1.0/Cargo.lock +4467 -0
- illoominate-0.1.0/Cargo.toml +68 -0
- illoominate-0.1.0/PKG-INFO +160 -0
- illoominate-0.1.0/README.md +146 -0
- illoominate-0.1.0/benches/benchmark_leave_one_out.rs +95 -0
- illoominate-0.1.0/benches/benchmark_shapley.rs +197 -0
- illoominate-0.1.0/images/shapley.png +0 -0
- illoominate-0.1.0/pyproject.toml +26 -0
- illoominate-0.1.0/python/illoominate/__init__.py +125 -0
- illoominate-0.1.0/python bindings.ipynb +458 -0
- illoominate-0.1.0/requirements.txt +8 -0
- illoominate-0.1.0/src/baselines/k_mc_shapley.rs +77 -0
- illoominate-0.1.0/src/baselines/k_mc_shapley_aggregate.rs +85 -0
- illoominate-0.1.0/src/baselines/loo.rs +62 -0
- illoominate-0.1.0/src/baselines/mcshapley_sparse.rs +81 -0
- illoominate-0.1.0/src/baselines/mod.rs +20 -0
- illoominate-0.1.0/src/baselines/tmcshapley.rs +78 -0
- illoominate-0.1.0/src/bin/create_nbr_dataset.rs +296 -0
- illoominate-0.1.0/src/bin/create_sbr_dataset.rs +426 -0
- illoominate-0.1.0/src/bin/create_sustainability_predictions.rs +103 -0
- illoominate-0.1.0/src/bin/nbr.rs +79 -0
- illoominate-0.1.0/src/bin/nbr_removal_impact.rs +1131 -0
- illoominate-0.1.0/src/bin/removal_impact.rs +326 -0
- illoominate-0.1.0/src/bin/sbr_removal_impact.rs +297 -0
- illoominate-0.1.0/src/bin/shapley_reproducibility.rs +213 -0
- illoominate-0.1.0/src/conf/illoominateconfig.rs +250 -0
- illoominate-0.1.0/src/conf/mod.rs +1 -0
- illoominate-0.1.0/src/importance/candidate_neighbors.rs +61 -0
- illoominate-0.1.0/src/importance/k_loo.rs +99 -0
- illoominate-0.1.0/src/importance/k_mc_shapley.rs +198 -0
- illoominate-0.1.0/src/importance/mod.rs +232 -0
- illoominate-0.1.0/src/importance/tmc_utils.rs +345 -0
- illoominate-0.1.0/src/lib.rs +294 -0
- illoominate-0.1.0/src/nbr/caboose/mod.rs +6 -0
- illoominate-0.1.0/src/nbr/caboose/row_accumulator.rs +138 -0
- illoominate-0.1.0/src/nbr/caboose/serialize.rs +58 -0
- illoominate-0.1.0/src/nbr/caboose/similarity.rs +27 -0
- illoominate-0.1.0/src/nbr/caboose/sparse_topk_index.rs +133 -0
- illoominate-0.1.0/src/nbr/caboose/topk.rs +27 -0
- illoominate-0.1.0/src/nbr/caboose/types.rs +52 -0
- illoominate-0.1.0/src/nbr/mod.rs +4 -0
- illoominate-0.1.0/src/nbr/removal_impact.rs +141 -0
- illoominate-0.1.0/src/nbr/tifuknn/hyperparams.rs +41 -0
- illoominate-0.1.0/src/nbr/tifuknn/io.rs +67 -0
- illoominate-0.1.0/src/nbr/tifuknn/mod.rs +423 -0
- illoominate-0.1.0/src/nbr/tifuknn/types.rs +80 -0
- illoominate-0.1.0/src/nbr/types.rs +76 -0
- illoominate-0.1.0/src/sessrec/io.rs +212 -0
- illoominate-0.1.0/src/sessrec/metrics/f1metric.rs +131 -0
- illoominate-0.1.0/src/sessrec/metrics/hitrate.rs +89 -0
- illoominate-0.1.0/src/sessrec/metrics/mod.rs +98 -0
- illoominate-0.1.0/src/sessrec/metrics/mrr.rs +88 -0
- illoominate-0.1.0/src/sessrec/metrics/ndcg.rs +127 -0
- illoominate-0.1.0/src/sessrec/metrics/precision.rs +106 -0
- illoominate-0.1.0/src/sessrec/metrics/product_info.rs +18 -0
- illoominate-0.1.0/src/sessrec/metrics/recall.rs +109 -0
- illoominate-0.1.0/src/sessrec/metrics/responsible_mrr.rs +106 -0
- illoominate-0.1.0/src/sessrec/metrics/sustainabilityratio.rs +116 -0
- illoominate-0.1.0/src/sessrec/mod.rs +5 -0
- illoominate-0.1.0/src/sessrec/removal_impact.rs +104 -0
- illoominate-0.1.0/src/sessrec/types.rs +85 -0
- illoominate-0.1.0/src/sessrec/vmisknn/mod.rs +501 -0
- illoominate-0.1.0/src/sessrec/vmisknn/topk.rs +82 -0
- illoominate-0.1.0/src/utils.rs +20 -0
- illoominate-0.1.0/tests/mod.rs +1 -0
- illoominate-0.1.0/tests/unit_tests/mod.rs +2 -0
- illoominate-0.1.0/tests/unit_tests/whiteboard_example.rs +109 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.7.4
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github
|
|
5
|
+
#
|
|
6
|
+
name: CI
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
- master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
26
|
+
platform:
|
|
27
|
+
- runner: ubuntu-latest
|
|
28
|
+
target: x86_64
|
|
29
|
+
- runner: ubuntu-latest
|
|
30
|
+
target: x86
|
|
31
|
+
- runner: ubuntu-latest
|
|
32
|
+
target: aarch64
|
|
33
|
+
- runner: ubuntu-latest
|
|
34
|
+
target: armv7
|
|
35
|
+
- runner: ubuntu-latest
|
|
36
|
+
target: ppc64le
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@v4
|
|
39
|
+
- uses: actions/setup-python@v5
|
|
40
|
+
with:
|
|
41
|
+
python-version: 3.x
|
|
42
|
+
- name: Build wheels
|
|
43
|
+
uses: PyO3/maturin-action@v1
|
|
44
|
+
with:
|
|
45
|
+
target: ${{ matrix.platform.target }}
|
|
46
|
+
args: --release --out dist --find-interpreter
|
|
47
|
+
sccache: 'true'
|
|
48
|
+
manylinux: auto
|
|
49
|
+
- name: Upload wheels
|
|
50
|
+
uses: actions/upload-artifact@v4
|
|
51
|
+
with:
|
|
52
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
53
|
+
path: dist
|
|
54
|
+
|
|
55
|
+
musllinux:
|
|
56
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
57
|
+
strategy:
|
|
58
|
+
matrix:
|
|
59
|
+
platform:
|
|
60
|
+
- runner: ubuntu-latest
|
|
61
|
+
target: x86_64
|
|
62
|
+
- runner: ubuntu-latest
|
|
63
|
+
target: x86
|
|
64
|
+
- runner: ubuntu-latest
|
|
65
|
+
target: aarch64
|
|
66
|
+
- runner: ubuntu-latest
|
|
67
|
+
target: armv7
|
|
68
|
+
steps:
|
|
69
|
+
- uses: actions/checkout@v4
|
|
70
|
+
- uses: actions/setup-python@v5
|
|
71
|
+
with:
|
|
72
|
+
python-version: 3.x
|
|
73
|
+
- name: Build wheels
|
|
74
|
+
uses: PyO3/maturin-action@v1
|
|
75
|
+
with:
|
|
76
|
+
target: ${{ matrix.platform.target }}
|
|
77
|
+
args: --release --out dist --find-interpreter
|
|
78
|
+
sccache: 'true'
|
|
79
|
+
manylinux: musllinux_1_2
|
|
80
|
+
- name: Upload wheels
|
|
81
|
+
uses: actions/upload-artifact@v4
|
|
82
|
+
with:
|
|
83
|
+
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
84
|
+
path: dist
|
|
85
|
+
|
|
86
|
+
windows:
|
|
87
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
88
|
+
strategy:
|
|
89
|
+
matrix:
|
|
90
|
+
platform:
|
|
91
|
+
- runner: windows-latest
|
|
92
|
+
target: x64
|
|
93
|
+
- runner: windows-latest
|
|
94
|
+
target: x86
|
|
95
|
+
steps:
|
|
96
|
+
- uses: actions/checkout@v4
|
|
97
|
+
- uses: actions/setup-python@v5
|
|
98
|
+
with:
|
|
99
|
+
python-version: 3.x
|
|
100
|
+
architecture: ${{ matrix.platform.target }}
|
|
101
|
+
- name: Build wheels
|
|
102
|
+
uses: PyO3/maturin-action@v1
|
|
103
|
+
with:
|
|
104
|
+
target: ${{ matrix.platform.target }}
|
|
105
|
+
args: --release --out dist --find-interpreter
|
|
106
|
+
sccache: 'true'
|
|
107
|
+
- name: Upload wheels
|
|
108
|
+
uses: actions/upload-artifact@v4
|
|
109
|
+
with:
|
|
110
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
111
|
+
path: dist
|
|
112
|
+
|
|
113
|
+
macos:
|
|
114
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
115
|
+
strategy:
|
|
116
|
+
matrix:
|
|
117
|
+
platform:
|
|
118
|
+
- runner: macos-12
|
|
119
|
+
target: x86_64
|
|
120
|
+
- runner: macos-14
|
|
121
|
+
target: aarch64
|
|
122
|
+
steps:
|
|
123
|
+
- uses: actions/checkout@v4
|
|
124
|
+
- uses: actions/setup-python@v5
|
|
125
|
+
with:
|
|
126
|
+
python-version: 3.x
|
|
127
|
+
- name: Build wheels
|
|
128
|
+
uses: PyO3/maturin-action@v1
|
|
129
|
+
with:
|
|
130
|
+
target: ${{ matrix.platform.target }}
|
|
131
|
+
args: --release --out dist --find-interpreter
|
|
132
|
+
sccache: 'true'
|
|
133
|
+
- name: Upload wheels
|
|
134
|
+
uses: actions/upload-artifact@v4
|
|
135
|
+
with:
|
|
136
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
137
|
+
path: dist
|
|
138
|
+
|
|
139
|
+
sdist:
|
|
140
|
+
runs-on: ubuntu-latest
|
|
141
|
+
steps:
|
|
142
|
+
- uses: actions/checkout@v4
|
|
143
|
+
- name: Build sdist
|
|
144
|
+
uses: PyO3/maturin-action@v1
|
|
145
|
+
with:
|
|
146
|
+
command: sdist
|
|
147
|
+
args: --out dist
|
|
148
|
+
- name: Upload sdist
|
|
149
|
+
uses: actions/upload-artifact@v4
|
|
150
|
+
with:
|
|
151
|
+
name: wheels-sdist
|
|
152
|
+
path: dist
|
|
153
|
+
|
|
154
|
+
release:
|
|
155
|
+
name: Release
|
|
156
|
+
runs-on: ubuntu-latest
|
|
157
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
158
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
159
|
+
permissions:
|
|
160
|
+
# Use to sign the release artifacts
|
|
161
|
+
id-token: write
|
|
162
|
+
# Used to upload release artifacts
|
|
163
|
+
contents: write
|
|
164
|
+
# Used to generate artifact attestation
|
|
165
|
+
attestations: write
|
|
166
|
+
steps:
|
|
167
|
+
- uses: actions/download-artifact@v4
|
|
168
|
+
- name: Generate artifact attestation
|
|
169
|
+
uses: actions/attest-build-provenance@v1
|
|
170
|
+
with:
|
|
171
|
+
subject-path: 'wheels-*/*'
|
|
172
|
+
- name: Publish to PyPI
|
|
173
|
+
if: "startsWith(github.ref, 'refs/tags/')"
|
|
174
|
+
uses: PyO3/maturin-action@v1
|
|
175
|
+
env:
|
|
176
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
177
|
+
with:
|
|
178
|
+
command: upload
|
|
179
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
datasets/private/*
|
|
2
|
+
configfile.toml
|
|
3
|
+
.ipynb_checkpoints/
|
|
4
|
+
|
|
5
|
+
secrets.ini
|
|
6
|
+
target/
|
|
7
|
+
venv/
|
|
8
|
+
# Byte-compiled / optimized / DLL files
|
|
9
|
+
__pycache__/
|
|
10
|
+
.pytest_cache/
|
|
11
|
+
*.py[cod]
|
|
12
|
+
|
|
13
|
+
# C extensions
|
|
14
|
+
*.so
|
|
15
|
+
|
|
16
|
+
# Distribution / packaging
|
|
17
|
+
.Python
|
|
18
|
+
.venv/
|
|
19
|
+
env/
|
|
20
|
+
build/
|
|
21
|
+
develop-eggs/
|
|
22
|
+
dist/
|
|
23
|
+
eggs/
|
|
24
|
+
lib/
|
|
25
|
+
lib64/
|
|
26
|
+
parts/
|
|
27
|
+
sdist/
|
|
28
|
+
var/
|
|
29
|
+
include/
|
|
30
|
+
man/
|
|
31
|
+
venv/
|
|
32
|
+
*.egg-info/
|
|
33
|
+
.installed.cfg
|
|
34
|
+
*.egg
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
pip-selfcheck.json
|
|
40
|
+
|
|
41
|
+
# Unit test / coverage reports
|
|
42
|
+
htmlcov/
|
|
43
|
+
.tox/
|
|
44
|
+
.coverage
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
|
|
49
|
+
# Translations
|
|
50
|
+
*.mo
|
|
51
|
+
|
|
52
|
+
# Mr Developer
|
|
53
|
+
.mr.developer.cfg
|
|
54
|
+
.project
|
|
55
|
+
.pydevproject
|
|
56
|
+
|
|
57
|
+
# Rope
|
|
58
|
+
.ropeproject
|
|
59
|
+
|
|
60
|
+
# Django stuff:
|
|
61
|
+
*.log
|
|
62
|
+
*.pot
|
|
63
|
+
|
|
64
|
+
.DS_Store
|
|
65
|
+
|
|
66
|
+
# Sphinx documentation
|
|
67
|
+
docs/_build/
|
|
68
|
+
|
|
69
|
+
# PyCharm
|
|
70
|
+
.idea/
|
|
71
|
+
|
|
72
|
+
# VSCode
|
|
73
|
+
.vscode/
|
|
74
|
+
|
|
75
|
+
# Pyenv
|
|
76
|
+
.python-version
|
|
77
|
+
/baseline_importances.txt
|
|
78
|
+
/nestedloops_importances.txt
|
|
79
|
+
/experiments/datasets/
|