Repository navigation
Releases
1.0.1
We are happy to announce the 1.0.1 release of scikit-activeml. This minor release includes a NumPy compatibility fix, tutorial improvements, updates to the documentation and dependency requirements, and more prominent license notices.
Bug Fixes
- Fix handling of arrays with a single element in
skactiveml.pool.utils.conditional_expectgivenmethod="dynamic_quad"for NumPy 2.4 compatibility by @mherde in #599. - Preserve the sample dimension for single-sample predictions in the advanced regression tutorial by using
torch.ravelin theSkorchRegressoroutput mapping by @mherde in #600.
Licensing and Packaging
- Integrate license texts and notices for code adapted from
scikit-learn,batchbald_redux, andlibactinto source distributions and wheels, and adjust the associated SPDX license metadata by @mherde in #599. - Add a license overview to the README, a dedicated Licenses page, and license notices in the API documentation for the affected query strategies and
batch_baldby @mherde in #599.
Documentation
- Update the README and
CITATION.cffto refer to the 2026 Journal of Machine Learning Research article, and add guidance on citing the original papers for the methods used by @mherde in #599. - Update the advanced regression tutorial with a
pandasinstallation instruction and theforward_outputsconfiguration forSkorchRegressorby @tpham93 in 6424b6b1. - Avoid redundant classifier fitting in the evaluation study and frozen image-embedding tutorial by passing
fit_clf=Falsewhen querying with an already fitted classifier by @mherde in #600. - Remove the obsolete
0.5.2installation pin and compatibility disclaimer from the River tutorial, and add it to the tutorial overview by @mherde in #600. - Correct the BALD name and the ordering of BALD and BatchBALD references in the docstrings by @mherde in #599.
- Update README's
pip installcommands using quotes for compatibility with zsh by @mherde in 18e1ea39.
Tests
- Correct the pytest configuration section to
[tool.pytest.ini_options]so pytest reads the configured test paths and coverage options by @mherde in #599. - Increase the tolerance for visualization image comparisons and close Matplotlib figures after each test by @mherde in #599.
Requirements
- Increase the minimum build requirement for
setuptoolsfrom>=69to>=77.0.1by @mherde in #599. - Increase the dependency upper bounds used by the optional
maxandopt_maxinstallation extras by @mherde in #599:joblib:<=1.5.2to<=1.6.0numpy:<=2.2.6to<=2.5.3scipy:<=1.15.3to<=1.18.1scikit-learn:<=1.8.0to<=1.9.1matplotlib:<=3.10.7to<=3.11.2skorch:<=1.3.0to<=1.4.0
Full Changelog: 1.0.0...b6937613
1.0.0
We are happy to announce the 1.0.0 release of scikit-activeml. Our main focus for this release was to make active learning with deep learning models more accessible. For this, we added new Estimator classes that wrap pytorch modules by using skorch. We also extensively reworked our documentation such that gaining an overview and navigatibility is improved.
Summary
- Add a wrapper for pytorch modules using skorch to make deep active learning more accessible:
- Implement
MaxHerding[1] - Improved documentation:
- Improved navigability of the API section
- Improved Tutorials overview
- Split strategy visualizations based on the depicted tasks and include performance metrics in plots
- Implement pre-commit hooks to check commits with black and flake8
- Updated requirements:
- Add support for Python 3.13
- Drop support for Python 3.9
- Add support for optional dependencies during installation with pip (see here)
Detailed List of Changes
Query Strategies
- Implement
MaxHerding[1] by @mherde in #510 - Add metric option to
CoreSetby @mherde in #517 - Extension of
Cluetoward regression tasks by @mherde in #545
Bug Fixes
- Fix handling of sklearn pipelines for
SklearnNormalRegressorby @LukasLuehrs in #523
Estimators
- Add a scikit-activeml wrapper for pytorch by @Cheng-JY in #403
- Skorch wrapper by @mherde in #536
- Add
AnnotMixClassifierby @mherde in #536 - Add
CrowdLayerClassifierby @mherde in #536 - Add
include_unlabeled_samplesto wrappers for better support of semi-supervised learning by @mherde in #536
Documentation
- Update image of
scikit-activemlstructure by @mherde in #506 - Improved navigation for the API reference by @tpham93 in #508
- Add multi-annotator template for visualization and resturcture visualization overview by @LukasLuehrs in #526
- Adjust docstring for Expected Model Change (EMC) by @LukasLuehrs in #521
- Update regression tutorial by @LukasLuehrs in #523
- Add extended strategy documentation and better example axis legend by @tpham93 in #531
Continuous Integration
- Add pre-commit configuration for automatic linting checks before got commits by @tpham93 in #532
- Fix pytest failing when using workers and add pytest arguments to pyproject.toml by @tpham93 in #530
- Build package workflow by @mherde in #543
Requirements
- Compatibility for Python 3.13 by @tpham93 in #508
- Add support for optional dependencies (esp. for
skorchsupport) by @mherde in #536 - Update scikit-learn requirement from <=1.6.1 to <=1.7.2 by @mherde in #536
- Update numpy requirement from <=2.2.3 to <=2.2.6 by @dependabot[bot] in #540
- Remove iteration-utilities as dependency by @tpham93 in #534
- Update joblib requirement from <=1.5.0 to <=1.5.2 by @dependabot[bot] in #514
- Update scipy requirement from <=1.15.2 to <=1.15.3 by @dependabot[bot] in #541
- Update matplotlib requirement from <=3.10.1 to <=3.10.7 by @dependabot[bot] in #539
- Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #519
- Bump actions/setup-python from 5 to 6 by @dependabot[bot] in #515
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #511
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #537
Breaking Changes
- Remove compatibility with Python 3.9
- Remove parameter
clf_embedding_flag_namefrom__init__andclfandfit_clffromqueryof query strategyClue - Remove
AnnotatorModelMixininterface and its corresponding methodpredict_annotator_perffromAnnotatorLogisticRegression
Full Changelog: 0.6.2...1.0.0
References
- [1] Bae, Wonho, Junhyug Noh, and Danica J. Sutherland. "Generalized Coverage for More Robust Low-Budget Active Learning." In Eur. Conf. Comput. Vis. 2024.
- [2] Herde, M., Lührs, L., Huseljic, D., & Sick, B. (2024). Annot-Mix: Learning with Noisy Class Labels from Multiple Annotators via a Mixup Extension. Eur. Conf. Artif. Intell.
- [3] Rodrigues, Filipe, and Francisco Pereira. “Deep Learning from Crowds.” AAAI Conference on Artificial Intelligence, 2018.
0.6.2
We are happy to announce the following changes/features:
Installation
Tests
Requirements
- Update joblib requirement from <=1.4.2 to <=1.5.0 by @dependabot in #497
- Update makefun requirement from <=1.15.6 to <=1.16.0 by @dependabot in #500
Full Changelog: 0.6.1...0.6.2
0.6.1
We are happy to announce the following changes/features:
Bugfixes
- #494 Add fix for repeated fit for
ParzenWindowClassifierwith mean criterion by @tpham93. - #493 Fix
RT-ALformethod="representativity"by @mherde. Thanks to @bjaster for pointing out this bug and proposing a fix in #491.
Full Changelog: 0.6.0...0.6.1
0.6.0
We are happy to announce the following changes/features:
Tutorials
Query Strategies
- #456 Implement
Falcun[1] by @mherde - #486 Implement
DropQuery[2] by @mherde - #465 Subsampling wrapper to limit training data by @tpham93
Estimators
- #478 Pretrained
sklearnmodels by @tpham93 - #486 Fix bug in
AnnotatorLogisticRegression[3] by @mherde
Documentation
Continuous Integration
- #464 Bump
codecov/codecov-actionfrom 4 to 5 by @dependabot - #467 Workflows for external pull requests by @tpham93
Requirements
- #463 Update numpy requirement from
<=2.1.0to<=2.1.3by @dependabot - #462 Update iteration-utilities requirement from
<=0.12.1to<=0.13.0by @dependabot - #460 Update makefun requirement from
<=1.15.4to<=1.15.6by @dependabot - #458 Update scikit-learn requirement from
<=1.5.1to<=1.5.2by @dependabot - #470 Update scikit-learn requirement from
<=1.5.2to<=1.6.0by @dependabot - #479 Update numpy requirement from
<=2.1.3to<=2.2.2by @dependabot - #477 Update scipy requirement from
<=1.14.1to<=1.15.1by @dependabot - #474 Update matplotlib requirement from
<=3.9.2to<=3.10.0by @dependabot - #483 Update scipy requirement from
<=1.15.1to<=1.15.2by @dependabot - #484 Update scikit-learn requirement from
<=1.6.0to<=1.6.1by @dependabot - #485 Update numpy requirement from
<=2.2.2to<=2.2.3by @dependabot - #487 Update matplotlib requirement from
<=3.10.0to<=3.10.1by @dependabot
Other
References
- [1] S. Gilhuber, A. Beer, Y. Ma, and T. Seidl. FALCUN: A Simple and Efficient Deep Active Learning Strategy. In Jt. Eur. Conf. Mach. Learn. Knowl. Discov. Databases, 421–439. 2024.
- [2] S. R. Gupte, J. Aklilu, J. J. Nirschl, and S. Yeung-Levy. Revisiting Active Learning in the Era of Vision Foundation Models. Trans. Mach. Learn. Res., 2024.
- [3] V. C. Raykar, S. Yu, L. H. Zhao, G. H. Valadez, C. Florin, L. Bogoni, and L. Moy. Learning from Crowds. J. Mach. Learn. Res., 11(4):1297–1322, 2010.
Full Changelog: 0.5.2...0.6.0
scikit-activeml 0.5.2
We are happy to announce the following changes/features:
Query Strategies:
Documentation:
Continuous Integration:
Requirements:
- Update scipy requirement from <=1.14.0 to <=1.14.1 by @dependabot in #449
- Update numpy requirement from <=2.0.1 to <=2.1.0 by @dependabot in #445
- Update matplotlib requirement from <=3.9.1 to <=3.9.2 by @dependabot in #446
Full Changelog: 0.5.1...0.5.2
scikit-activeml 0.5.1
We are happy to announce the following changes/features:
Query Strategies:
- Implement pool-based query strategy Probability Coverage (ProbCover) [1] as
ProbCoverby @mherde in #426 - Implement pool-based query strategy Contrastive Active Learning (CAL) [2] as
ContrastiveALby @mherde in #430 - Implement pool-based query strategy Clustering Uncertainty-weighted Embeddings (CLUE) [3] as
Clueby @mherde in #437 - Add sampling option and variation ratios [4] as new options to pool-based query strategy Query by Committee (QBC) in
QueryByCommitteeby @mherde in #434
Tutorials:
Documentation:
- Implement versioning of the documentation and parallelize examples by @AlexanderBenz in #379 and by @tpham93 in #438
- Add community standards by @mherde in #431
Requirements:
- Update optional maximum numpy requirement from <=2.0.0 to <=2.0.1 by @dependabot in #425
References
- [1] Yehuda, Ofer, Avihu Dekel, Guy Hacohen, and Daphna Weinshall. "Active learning through a covering lens." Advances in Neural Information Processing Systems 35 (2022): 22354-22367.
- [2] Margatina, Katerina, Giorgos Vernikos, Loïc Barrault, and Nikolaos Aletras. "Active Learning by Acquiring Contrastive Examples." In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 650-663. 2021.
- [3] Prabhu, Viraj, Arjun Chandrasekaran, Kate Saenko, and Judy Hoffman. "Active Domain Adaptation via Clustering Uncertainty-weighted Embeddings." In Proceedings of the IEEE/CVF international conference on computer vision, pp. 8505-8514. 2021
- [4] Beluch, W. H., Genewein, T., Nürnberger, A., and Köhler, J. M. The Power of Ensembles for Active Learning in Image Classification. In Conference on Computer Vision and Pattern Recognition, pages 9368-9377, 2018.
Full Changelog:
scikit-activeml 0.5.0
We are happy to announce the following changes/features:
Wrapper Query Strategies:
- FR: Addition of the pool-based query strategy wrapper
SubSamplingWrapper, which allows subsampling a smaller set of sample candidates to accelerate the sample selection viaquery(cf. #349). - FR: Addition of the pool-based query strategy wrapper
ParallelUtilityEstimationWrapper, which allows parallelizing the utility computation across the sample candidates viajoblib. As a requirement, the utility computation must be independent between the candidate samples (cf. #402).
Query Strategies:
- FR: Addition of the pool-based query strategy
RegressionTreeBasedAL, which leverages a regression tree to select samples for regression tasks (cf. #371). - FR: Addition of the pool-based query strategy
CoreSet, which leverageskmeans++to select diverse samples. Originally, this strategy has been designed for classification tasks. Yet, it can also be used in the context of regression (cf. #281). - FR: Addition of the pool-based query strategy
TypiClust, which leverageskmeansto balance the trade-off between diversity and representativeness (typicality) of samples. Originally, this strategy has been designed for classification tasks. Yet, it can also be used in the context of regression (cf. #364). - FR: Addition of the pool-based query strategy
Badge, which leverageskmeans++in the gradient space of the last linear layer of a classification neural network. Thereby, its sample selection balances the trade-off between diverse and uncertain samples. - FR: Addition of the pool-based query strategy
GreedyBALD, which performs atop-kselection for the utilities computed according to BALD (cf. #323). - BUG: Fix the issue of estimators outputting zero probabilities, raising warnings when computing log probabilities in
BatchBALD. - BUG: Fix the handling of
candidatesin the multi-annotator pool-based query strategy wrapperSingleAnnotatorWrapper(cf. #404) and ensure thatmissing_labelthe wrapper and the wrapped single-annotator query strategy match (cf. #405).
Estimators:
- FR:
SklearnClassifier,SklearnClassifier,andSlidingWindowClassifierhavematch_signatureas new decorators for the methods to enforce the correct mapping between the parameter signature between the wrapper's methods and the wrapped estimator's methods (cf. #375).
Tutorials:
- FR: Add a tutorial showcasing query strategies suited for deep learning tasks in combination with self-supervised models to extract self-supervised sample features (cf. #282).
Requirements:
- FR: Update of supported Python versions to 3.9, 3.10, 3.11, and 3.12 (cf. #378, #416). The requirements are updated accordingly.
- FR: Removed upper bounds in requirements to avoid undesired downgrades of packages. Still, a guaranteed working installation can be enforced via
max_requirements.txt. - FR: Add
makefunas a new requirement to match signatures when using wrappers (cf. #375). - FR: Implement automatic dependency check via dependabot (cf. #302, #314).
Tests:
- Add and use new test templates for classifiers, regressors, stream-based query strategies, and budget managers (cf. #303).
Documentation:
- FR: Add note that outputs of the query strategy examples are given at the bottom of each example (cf. #304).
Continuous Integration:
- FR: Addition of automatic formatting check via
black(cf. #301). - FR: Parallelize example generation to speed up the CI process (cf. #306).
Full Changelog:
scikit-activeml 0.4.1
We are happy to announce the following changes/features:
- We added
CogDQSandDBALStreamas two new stream-based query strategies (cf. #254). - We implemented
BatchBALDas a new pool-based query strategy (cf. #284). - We added examples for the stream-based query strategies to the documentation and updated the notion of utilities, which now need to be maximized (cf. #286).
- We added legends to the examples for better understanding (cf. #287).
- We revised the developer guide (cf. #290).
scikit-activeml 0.4.0
We are happy to announce the following changes/features:
- We now support Python 3.10, and we deprecated Python 3.7 (cf. #279).
- We now support scikit-learn 1.2 (cf. #279).
- Update of probabilistic active learning to support mean bandwidth kernel (cf. #260).
- Added examples for DWUS and DUAL as two newly supported uncertainty-based query strategies (cf. #266).
- Updated QUIRE to allow sampling when mathematical assumptions are not fulfilled (cf. #274 ).