Skip to content

Releases

1.0.1

Choose a tag to compare

@mherde mherde released this 15 Oct 16:58
b693761

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_expect given method="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.ravel in the SkorchRegressor output mapping by @mherde in #600.

Licensing and Packaging

  • Integrate license texts and notices for code adapted from scikit-learn, batchbald_redux, and libact into 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_bald by @mherde in #599.

Documentation

  • Update the README and CITATION.cff to 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 pandas installation instruction and the forward_outputs configuration for SkorchRegressor by @tpham93 in 6424b6b1.
  • Avoid redundant classifier fitting in the evaluation study and frozen image-embedding tutorial by passing fit_clf=False when querying with an already fitted classifier by @mherde in #600.
  • Remove the obsolete 0.5.2 installation 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 install commands 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 setuptools from >=69 to >=77.0.1 by @mherde in #599.
  • Increase the dependency upper bounds used by the optional max and opt_max installation extras by @mherde in #599:
    • joblib: <=1.5.2 to <=1.6.0
    • numpy: <=2.2.6 to <=2.5.3
    • scipy: <=1.15.3 to <=1.18.1
    • scikit-learn: <=1.8.0 to <=1.9.1
    • matplotlib: <=3.10.7 to <=3.11.2
    • skorch: <=1.3.0 to <=1.4.0

Full Changelog: 1.0.0...b6937613

1.0.0

Choose a tag to compare

@tpham93 tpham93 released this 11 Dec 11:17
2281691

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

Detailed List of Changes

Query Strategies

Bug Fixes

  • Fix handling of sklearn pipelines for SklearnNormalRegressor by @LukasLuehrs in #523

Estimators

  • Add a scikit-activeml wrapper for pytorch by @Cheng-JY in #403
  • Skorch wrapper by @mherde in #536
  • Add AnnotMixClassifier by @mherde in #536
  • Add CrowdLayerClassifier by @mherde in #536
  • Add include_unlabeled_samples to wrappers for better support of semi-supervised learning by @mherde in #536

Documentation

  • Update image of scikit-activeml structure 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 skorch support) 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_name from __init__ and clf and fit_clf from query of query strategy Clue
  • Remove AnnotatorModelMixin interface and its corresponding method predict_annotator_perf from AnnotatorLogisticRegression

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

Choose a tag to compare

@tpham93 tpham93 released this 14 May 13:34
a031532

We are happy to announce the following changes/features:

Installation

  • Upload to PyPI complies with PEP625 by @mherde in #499

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

Choose a tag to compare

@tpham93 tpham93 released this 29 Apr 13:42
3dc612d

We are happy to announce the following changes/features:

Bugfixes

  • #494 Add fix for repeated fit for ParzenWindowClassifier with mean criterion by @tpham93.
  • #493 Fix RT-AL for method="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

Choose a tag to compare

@mherde mherde released this 09 Apr 15:58

We are happy to announce the following changes/features:

Tutorials

Query Strategies

Estimators

Documentation

Continuous Integration

Requirements

Other

  • #481 Fix bug in match_signature with type hints by @tpham93

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

Choose a tag to compare

@mherde mherde released this 28 Aug 16:00
cb3d575

We are happy to announce the following changes/features:

Query Strategies:

  • Fix TypiClust when batch_size is higher than the number of non-empty clusters by @tpham93 in #452

Documentation:

  • Add development branch to documentation by @tpham93 in #448

Continuous Integration:

Requirements:

Full Changelog: 0.5.1...0.5.2

scikit-activeml 0.5.1

Choose a tag to compare

@mherde mherde released this 06 Aug 08:41
a5b53ee

We are happy to announce the following changes/features:

Query Strategies:

  • Implement pool-based query strategy Probability Coverage (ProbCover) [1] as ProbCover by @mherde in #426
  • Implement pool-based query strategy Contrastive Active Learning (CAL) [2] as ContrastiveAL by @mherde in #430
  • Implement pool-based query strategy Clustering Uncertainty-weighted Embeddings (CLUE) [3] as Clue by @mherde in #437
  • Add sampling option and variation ratios [4] as new options to pool-based query strategy Query by Committee (QBC) in QueryByCommittee by @mherde in #434

Tutorials:

  • Add "Open in Colab" button to all tutorial notebooks and examples by @tpham93 in #429

Documentation:

Requirements:

  • Update optional maximum numpy requirement from <=2.0.0 to <=2.0.1 by @dependabot in #425

References

Full Changelog:

0.5.0...0.5.1

scikit-activeml 0.5.0

Choose a tag to compare

@mherde mherde released this 22 Jul 16:33

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 via query (cf. #349).
  • FR: Addition of the pool-based query strategy wrapper ParallelUtilityEstimationWrapper, which allows parallelizing the utility computation across the sample candidates via joblib. 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 leverages kmeans++ 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 leverages kmeans to 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 leverages kmeans++ 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 a top-k selection 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 candidates in the multi-annotator pool-based query strategy wrapper SingleAnnotatorWrapper (cf. #404) and ensure that missing_label the wrapper and the wrapped single-annotator query strategy match (cf. #405).

Estimators:

  • FR: SklearnClassifier, SklearnClassifier, and SlidingWindowClassifier have match_signature as 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 makefun as 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

Choose a tag to compare

@mherde mherde released this 27 Apr 09:11
023b32d

We are happy to announce the following changes/features:

  • We added CogDQS and DBALStream as two new stream-based query strategies (cf. #254).
  • We implemented BatchBALD as 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

Choose a tag to compare

@mherde mherde released this 21 Dec 13:33
089c015

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 ).