Skip to content

Commit 98c2041

Browse files
committed
Merge remote-tracking branch 'origin/master' into load_datasets_by_name
# Conflicts: # skfp/datasets/utils.py
2 parents a7a8d9d + ac2fdaf commit 98c2041

File tree

16 files changed

+998
-33
lines changed

16 files changed

+998
-33
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
jobs:
1313
ci:
1414
strategy:
15-
fail-fast: true
15+
fail-fast: false
1616
matrix:
1717
python-version: ["3.10", "3.11", "3.12", "3.13"]
1818
os: [macos-latest, ubuntu-latest, windows-latest]
@@ -34,12 +34,18 @@ jobs:
3434
poetry config virtualenvs.create true --local
3535
poetry config virtualenvs.in-project true --local
3636
37-
- uses: actions/cache@v3
38-
name: Define a venv cache
37+
- uses: actions/cache@v4
38+
name: Cache venv
3939
with:
4040
path: ./.venv
4141
key: ${{ matrix.os }}-venv-${{ hashFiles('**/poetry.lock') }}
4242

43+
- uses: actions/cache@v4
44+
name: Cache datasets
45+
with:
46+
path: ~/scikit_learn_data
47+
key: datasets
48+
4349
- name: Install the project dependencies
4450
run: poetry sync --with test
4551

@@ -72,5 +78,11 @@ jobs:
7278
- name: Install Pandoc
7379
uses: r-lib/actions/setup-pandoc@v2
7480

81+
- uses: actions/cache@v4
82+
name: Cache datasets
83+
with:
84+
path: ~/scikit_learn_data
85+
key: datasets
86+
7587
- name: Build documentation
7688
run: poetry run make doctest

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ doctest: docs ## Run documentation tests
2121

2222
test: ## Run tests
2323
poetry run ruff check
24-
poetry run pytest tests
24+
# reruns due to HuggingFace API rate limiting
25+
poetry run pytest --reruns 20 --reruns-delay 5 --only-rerun LocalEntryNotFoundError --only-rerun FileNotFoundError tests
2526

2627
test-coverage: ## Run tests and calculate test coverage
2728
-mkdir .tmp_coverage_files

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Examples and tutorials:
144144
5. [Hyperparameter tuning](examples/05_hyperparameter_tuning.ipynb)
145145
6. [Dataset splits](examples/06_dataset_splits.ipynb)
146146
7. [Datasets and benchmarking](examples/07_datasets_and_benchmarking.ipynb)
147+
8. [Similarity and distance metrics](examples/08_similarity_and_distance_metrics.ipynb)
147148

148149
## Project overview
149150

docs/modules/applicability_domain.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Classes for checking applicability domain.
1616

1717
BoundingBoxADChecker
1818
ConvexHullADChecker
19+
LeverageADChecker

0 commit comments

Comments
 (0)