feat: adapt active learning with small-text example to recent argilla version #3831
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR solves #3442 in which two notebooks should be updated. In the respective issue I just wanted to raise the small-text version since there have been new features, and more importantly, some bug fixes in small-text.
In the course of updating this, I noticed that the notebooks seemed to have issues when used with a recent argilla version:
rg.configure_dataset()
TextClassificationRecord
which was passedid
s of type np.int64, which seems to have become stricter and now requires int.This could have been done in
twothree PRs but since it needs manual testing afterwards I decided to count it as "one update". I hope you are okay with this ;). Edit: I made separate entries in CHANGELOG.md. Feel free to rewrite/change it back.The following two notebooks were updated:
Changes:
rg.configure_dataset()
withrg.configure_dataset_settings()
Closes #3442
Type of change
How Has This Been Tested
training-textclassification-smalltext-activelearning.ipynb
has been tested with a local Jupyterlab against a Hugging Face Spaces argilla instance.deploying-textclassification-colab-activelearning.ipynp
has been testen in Google Colab (as it is required).Checklist
I added relevant documentationI made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature worksCHANGELOG.md
file (See https://keepachangelog.com/)