Downloads ยท 30 days
7
41% of all-time downloads
nickagge/paladin-improved
paladin-improved is a text classification model from nickagge. Use it when you need a label for a piece of text. It is set up for peft. The card lists the license as mit.
A balanced, production-ready sentiment analysis model using PALADIM architecture
Downloads ยท 30 days
7
41% of all-time downloads
All-time downloads
17
Public
Repo size
206 KB
Likes
0
Public
Click a slice to open those files.
.json714 KB ยท 62%
From the Hugging Face model README
A balanced, production-ready sentiment analysis model using PALADIM architecture
All predictions correct with high confidence:
| Text | Prediction | Confidence |
|---|---|---|
| "This movie was absolutely fantastic!" | โ POSITIVE | 93.5% |
| "Terrible experience. Waste of time and money." | โ NEGATIVE | 92.1% |
| "Pretty good, I enjoyed it overall." | โ POSITIVE | 88.5% |
| "Not great, kind of boring and disappointing." | โ NEGATIVE | 86.4% |
| "Amazing! Best thing I've ever seen!" | โ POSITIVE | 94.0% |
| "Awful. Would not recommend to anyone." | โ NEGATIVE | 95.7% |
from peft import PeftModel
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
# Load model
base_model = AutoModelForSequenceClassification.from_pretrained(
"prajjwal1/bert-tiny",
num_labels=2
)
model = PeftModel.from_pretrained(base_model, "nickagge/paladim-sentiment-improved")
tokenizer = AutoTokenizer.from_pretrained("nickagge/paladim-sentiment-improved")
# Predict
text = "This movie was fantastic!"
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=-1).item()
sentiment = "POSITIVE" if prediction == 1 else "NEGATIVE"
confidence = torch.softmax(outputs.logits, dim=-1).max().item()
print(f"{sentiment} ({confidence*100:.1f}%)")
PALADIM (Pre Adaptive Learning Architecture of Dual-Process Hebbian-MoE Schema) is a continual learning system that combines:
This model is fine-tuned for binary sentiment classification (positive/negative) with balanced training to avoid prediction bias. It achieves 78.68% accuracy with high confidence predictions on both sentiment classes.
| Epoch | Train Loss | Train Acc | Eval Acc | Pos Acc | Neg Acc |
|---|---|---|---|---|---|
| 1 | 0.5514 | 71.31% | 77.48% | 77.44% | 77.52% |
| 2 | 0.4933 | 76.00% | 77.68% | 86.59% | 68.51% |
| 3 | 0.4805 | 76.94% | 78.68% | 74.61% | 82.87% |
โ
Balanced predictions - No systematic bias
โ
High confidence - 86-96% on test sentences
โ
Consistent performance - Both classes above 74%
@misc{paladim-sentiment-improved,
title={PALADIM Sentiment Analysis Model},
author={nickagge},
year={2025},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/nickagge/paladim-sentiment-improved}}
}