acteval 0.1.2__tar.gz → 0.3.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.
- acteval-0.3.0/.github/workflows/benchmark.yml +71 -0
- acteval-0.3.0/LICENSE +21 -0
- {acteval-0.1.2 → acteval-0.3.0}/PKG-INFO +6 -2
- acteval-0.3.0/README.md +654 -0
- acteval-0.3.0/assets/density-estimation.png +0 -0
- acteval-0.3.0/llms.txt +130 -0
- {acteval-0.1.2 → acteval-0.3.0}/pyproject.toml +7 -5
- {acteval-0.1.2 → acteval-0.3.0}/scripts/generate_blog_plots.py +29 -41
- acteval-0.3.0/src/acteval/__init__.py +50 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/_aggregation.py +33 -115
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/_jobs.py +141 -14
- acteval-0.3.0/src/acteval/_pipeline.py +386 -0
- acteval-0.3.0/src/acteval/_progress.py +99 -0
- acteval-0.3.0/src/acteval/_report.py +5 -0
- acteval-0.3.0/src/acteval/_result_frame.py +144 -0
- acteval-0.3.0/src/acteval/_splits.py +133 -0
- acteval-0.3.0/src/acteval/cli.py +542 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/config.toml +19 -4
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/distance/wasserstein.py +12 -4
- acteval-0.3.0/src/acteval/evaluate.py +903 -0
- acteval-0.3.0/src/acteval/features/_pid_features.py +132 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/_utils.py +23 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/creativity.py +38 -13
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/participation.py +22 -16
- acteval-0.3.0/src/acteval/features/structural.py +208 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/transitions.py +6 -3
- {acteval-0.1.2/src/acteval/describe → acteval-0.3.0/src/acteval/plot}/frequency.py +8 -3
- {acteval-0.1.2/src/acteval/describe → acteval-0.3.0/src/acteval/plot}/plot.py +1 -1
- {acteval-0.1.2/src/acteval/describe → acteval-0.3.0/src/acteval/plot}/results.py +2 -2
- {acteval-0.1.2/src/acteval/describe → acteval-0.3.0/src/acteval/plot}/times.py +1 -1
- {acteval-0.1.2/src/acteval/describe → acteval-0.3.0/src/acteval/plot}/transitions.py +1 -1
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/population.py +29 -11
- acteval-0.3.0/src/acteval/results.py +704 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_bench_evaluate.py +44 -3
- acteval-0.3.0/tests/test_cli.py +628 -0
- acteval-0.3.0/tests/test_compare.py +207 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_creativity.py +64 -10
- acteval-0.3.0/tests/test_disable_config.py +136 -0
- acteval-0.3.0/tests/test_distance_emd1d.py +37 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_features_participation.py +26 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_features_structural.py +75 -30
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_features_transitions.py +7 -0
- acteval-0.3.0/tests/test_filter_cmd.py +161 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_integration.py +94 -15
- acteval-0.3.0/tests/test_jobs.py +80 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_pid_features.py +69 -19
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_population.py +59 -0
- acteval-0.3.0/tests/test_results.py +202 -0
- acteval-0.3.0/tests/test_split_order.py +316 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_validation.py +37 -0
- acteval-0.3.0/uv.lock +1623 -0
- acteval-0.1.2/.github/workflows/benchmark.yml +0 -40
- acteval-0.1.2/README.md +0 -319
- acteval-0.1.2/llms.txt +0 -68
- acteval-0.1.2/src/acteval/__init__.py +0 -35
- acteval-0.1.2/src/acteval/_filters.py +0 -16
- acteval-0.1.2/src/acteval/_pipeline.py +0 -395
- acteval-0.1.2/src/acteval/_report.py +0 -97
- acteval-0.1.2/src/acteval/_result_frame.py +0 -178
- acteval-0.1.2/src/acteval/_splits.py +0 -67
- acteval-0.1.2/src/acteval/cli.py +0 -206
- acteval-0.1.2/src/acteval/evaluate.py +0 -794
- acteval-0.1.2/src/acteval/features/_pid_features.py +0 -73
- acteval-0.1.2/src/acteval/features/structural.py +0 -202
- acteval-0.1.2/tests/test_cli.py +0 -280
- acteval-0.1.2/tests/test_compare.py +0 -39
- acteval-0.1.2/tests/test_filter.py +0 -76
- acteval-0.1.2/tests/test_jobs.py +0 -39
- acteval-0.1.2/uv.lock +0 -3817
- {acteval-0.1.2 → acteval-0.3.0}/.github/workflows/ci.yml +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/.github/workflows/publish.yml +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/.gitignore +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/__main__.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/_compat.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/distance/__init__.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/distance/scalar.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/__init__.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/_discretise.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/catalogue.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/frequency.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/features/times.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/src/acteval/pairwise.py +0 -0
- {acteval-0.1.2/src/acteval/describe → acteval-0.3.0/src/acteval/plot}/__init__.py +0 -0
- {acteval-0.1.2/src/acteval/describe → acteval-0.3.0/src/acteval/plot}/utils.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/conftest.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_bench_pairwise.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_describe_features.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_distance_emd.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_distance_scalar.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_features_catalogue.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_features_times.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_features_utils.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_frequency.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_missing_features.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_pairwise.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_polars_compat.py +0 -0
- {acteval-0.1.2 → acteval-0.3.0}/tests/test_report.py +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: Benchmark
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
benchmark:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
|
|
18
|
+
- uses: astral-sh/setup-uv@v4
|
|
19
|
+
|
|
20
|
+
- name: Install Python 3.13
|
|
21
|
+
run: uv python install 3.13
|
|
22
|
+
|
|
23
|
+
# Baseline and candidate run on the same runner, so the comparison is not
|
|
24
|
+
# thrown off by hardware differences between GitHub-hosted machines.
|
|
25
|
+
# The baseline also runs the candidate's benchmark files, so a commit that
|
|
26
|
+
# changes the benchmark workload compares like with like. Benchmarks the
|
|
27
|
+
# baseline can't run (e.g. new API) aren't saved, so they're not compared.
|
|
28
|
+
- name: Run baseline benchmarks (previous commit)
|
|
29
|
+
env:
|
|
30
|
+
BASE_SHA: ${{ github.event.before }}
|
|
31
|
+
run: |
|
|
32
|
+
if ! git cat-file -e "${BASE_SHA}^{commit}" 2>/dev/null; then
|
|
33
|
+
BASE_SHA=$(git rev-parse HEAD~1)
|
|
34
|
+
fi
|
|
35
|
+
echo "Baseline: $BASE_SHA"
|
|
36
|
+
git worktree add "$RUNNER_TEMP/baseline" "$BASE_SHA"
|
|
37
|
+
cd "$RUNNER_TEMP/baseline"
|
|
38
|
+
cp "$GITHUB_WORKSPACE"/tests/test_bench_*.py tests/
|
|
39
|
+
uv sync
|
|
40
|
+
uv run pytest tests/test_bench_evaluate.py tests/test_bench_pairwise.py \
|
|
41
|
+
--benchmark-only \
|
|
42
|
+
--benchmark-save=baseline \
|
|
43
|
+
--continue-on-collection-errors \
|
|
44
|
+
|| echo "Some baseline benchmarks failed; they are skipped in the comparison"
|
|
45
|
+
cp -r .benchmarks "$GITHUB_WORKSPACE/.benchmarks"
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: uv sync
|
|
49
|
+
|
|
50
|
+
- name: Run candidate benchmarks and compare
|
|
51
|
+
run: >
|
|
52
|
+
uv run pytest tests/test_bench_evaluate.py tests/test_bench_pairwise.py
|
|
53
|
+
--benchmark-only
|
|
54
|
+
--benchmark-compare=0001
|
|
55
|
+
--benchmark-compare-fail=min:50%
|
|
56
|
+
--benchmark-json output.json
|
|
57
|
+
|
|
58
|
+
# History for the gh-pages chart only; regressions are gated by the
|
|
59
|
+
# same-runner comparison above, as cross-runner alerts are too noisy.
|
|
60
|
+
- name: Store benchmark results
|
|
61
|
+
if: ${{ !cancelled() && hashFiles('output.json') != '' }}
|
|
62
|
+
uses: benchmark-action/github-action-benchmark@v1
|
|
63
|
+
with:
|
|
64
|
+
tool: pytest
|
|
65
|
+
output-file-path: output.json
|
|
66
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
67
|
+
auto-push: true
|
|
68
|
+
alert-threshold: "150%"
|
|
69
|
+
comment-on-alert: false
|
|
70
|
+
fail-on-alert: false
|
|
71
|
+
benchmark-data-dir-path: dev/bench
|
acteval-0.3.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fred Shone
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: acteval
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Standalone library for evaluating activity sequences
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
5
7
|
Requires-Python: >=3.10
|
|
6
8
|
Requires-Dist: matplotlib
|
|
7
9
|
Requires-Dist: numpy
|
|
8
10
|
Requires-Dist: pandas
|
|
9
11
|
Requires-Dist: pot
|
|
10
12
|
Requires-Dist: scipy
|
|
13
|
+
Requires-Dist: seaborn
|
|
11
14
|
Requires-Dist: tabulate
|
|
12
15
|
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
|
|
16
|
+
Requires-Dist: tqdm
|
|
13
17
|
Requires-Dist: tslearn
|