CoolFace
Modelpublic

adaptive-classifier/vendor-classification

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes799downloads
README.md74 linesDownload Raw Back to root
1---2language: multilingual3tags:4- adaptive-classifier5- text-classification6- continuous-learning7license: apache-2.08---9 10# Adaptive Classifier11 12This model is an instance of an [adaptive-classifier](https://github.com/codelion/adaptive-classifier) that allows for continuous learning and dynamic class addition.13 14You can install it with `pip install adaptive-classifier`.15 16## Model Details17 18- Base Model: answerdotai/ModernBERT-base19- Number of Classes: 220- Total Examples: 1021- Embedding Dimension: 76822 23## Class Distribution24 25```26new_vendor: 5 examples (50.0%)27trusted_partner: 5 examples (50.0%)28```29 30## Usage31 32```python33from adaptive_classifier import AdaptiveClassifier34 35# Load the model36classifier = AdaptiveClassifier.from_pretrained("adaptive-classifier/model-name")37 38# Make predictions39text = "Your text here"40predictions = classifier.predict(text)41print(predictions)  # List of (label, confidence) tuples42 43# Add new examples44texts = ["Example 1", "Example 2"]45labels = ["class1", "class2"]46classifier.add_examples(texts, labels)47```48 49## Training Details50 51- Training Steps: 652- Examples per Class: See distribution above53- Prototype Memory: Active54- Neural Adaptation: Active55 56## Limitations57 58This model:59- Requires at least 3 examples per class60- Has a maximum of 150 examples per class61- Updates prototypes every 10 examples62 63## Citation64 65```bibtex66@software{adaptive_classifier,67  title = {Adaptive Classifier: Dynamic Text Classification with Continuous Learning},68  author = {Sharma, Asankhaya},69  year = {2025},70  publisher = {GitHub},71  url = {https://github.com/codelion/adaptive-classifier}72}73```74