Views
No views yet
| Tribu | Motivación | Valor Dominante | Estilo Comunicativo |
|---|---|---|---|
| Ant 🐜 | Competir y ganar | Esfuerzo y logro personal | Directo, técnico, racional |
| Bee 🐝 | Crear para el bien común | Altruismo y cooperación | Positivo, inclusivo, empático |
| Leech 🪱 | Obtener poder o riqueza | Egoísmo y manipulación | Persuasivo, utilitarista, estratégico |
| Butterfly 🦋 | Inspirar y emocionar | Belleza, autenticidad, creatividad | Estético, poético, simbólico |
| Clase / Tribu | Precisión (Precision) | Cobertura (Recall) | F1-Score | Soporte (Support) |
|---|---|---|---|---|
| 🐜 Ant | 0.73 | 0.73 | 0.73 | 7,682 |
| 🐝 Bee | 0.65 | 0.65 | 0.65 | 5,780 |
| 🪱 Leech | 0.72 | 0.71 | 0.72 | 5,553 |
| 🦋 Butterfly | 0.79 | 0.82 | 0.80 | 3,332 |
| Macro Avg | 0.72 | 0.73 | 0.72 | 22,347 |
| Weighted Avg | 0.72 | 0.72 | 0.72 | 22,347 |
transformers de Hugging Face:1import torch
2from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
4# Cargar modelo y tokenizador desde Hugging Face Hub
5# Nota: Ajustar el parámetro 'subfolder' si los pesos se encuentran en una subcarpeta
6MODEL_PATH = "Ludy7/nlp-behavioral-tribes-classifier"
7
8tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, subfolder="final_distilbert_model")
9model = AutoModelForSequenceClassification.from_pretrained(MODEL_PATH, subfolder="final_distilbert_model")
10
11# Ejemplo de Inferencia
12text = "Es necesario trabajar en equipo y cooperar para que toda la comunidad pueda desarrollarse de manera equitativa y justa."
13inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
14
15with torch.no_grad():
16 outputs = model(**inputs)
17
18probs = torch.softmax(outputs.logits, dim=1)[0]
19print(probs)