Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.22 KB

MIGRATION_GUIDE.md

File metadata and controls

27 lines (17 loc) · 1.22 KB

Migration Guide

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.

1.3.0 to 2.0.0

Work in progress. If in doubt, look at the code and docstrings.

Interfaces Changes

  • PoolBasedActiveLearner:
    initialize_data() has been changed to initialize(). The method now takes a list of initial indices or an initialized first (proxy-)model.

Renamed Classes

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 to classification_kwargs

Moved Classed / Changed Import Paths

  • SEALS has been moved from small_text.query_strategies.strategies to small_text.query_strategies.subsampling. You either have to fix the import or switch to use the convenience report:
    from small_text import SEALS