The migration guide is intended to help you adapt your code after major version releases, which can and are likely to break some interfaces. This is not an exhaustive list of changes, but here we try to collect changes that break existing code.
Work in progress. If in doubt, look at the code and docstrings.
- PoolBasedActiveLearner:
initialize_data()
has been changed toinitialize()
. The method now takes a list of initial indices or an initialized first (proxy-)model.
The following classes amd variables have been renamed for consistency:
-
KimCNNFactory -> KimCNNClassifierFactory
-
KimCNNClassifierFactory, TransformerBasedClassificationFactory: the argument for classification keyword arguments (
kwargs
) in the respective__init__()
has been renamed toclassification_kwargs
- SEALS has been moved from
small_text.query_strategies.strategies
tosmall_text.query_strategies.subsampling
. You either have to fix the import or switch to use the convenience report:from small_text import SEALS