You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This model is an instance of an [adaptive-classifier](https://github.com/codelion/adaptive-classifier) that allows for continuous learning and dynamic class addition.
926
927
927
-
You can install it with `pip install adaptive-classifier`.
928
+
## Installation
929
+
930
+
**IMPORTANT:** To use this model, you must first install the `adaptive-classifier` library. You do **NOT** need `trust_remote_code=True`.
print(predictions) # List of (label, confidence) tuples
954
963
955
-
# Add new examples
964
+
# Add new examples for continuous learning
956
965
texts = ["Example 1", "Example 2"]
957
966
labels = ["class1", "class2"]
958
967
classifier.add_examples(texts, labels)
959
968
```
960
969
970
+
**Note:** This model uses the `adaptive-classifier` library distributed via PyPI. You do **NOT** need to set `trust_remote_code=True` - just install the library first.
0 commit comments