Downloads · 30 days
0
mjpsm/Ujamaa-xgb-model
Ujamaa-xgb-model is a machine learning model from mjpsm. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
The Ujamaa XGB Model is part of the Soulprint Archetype Framework, built to predict the Ujamaa score (0.0–1.0) of text. Ujamaa embodies collaborative power and collective uplift, rooted in teamwork, shared responsibil…
Downloads · 30 days
0
Access
Public
Updated Sep 30, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json1.2 MB · 100%
From the Hugging Face model README
The Ujamaa XGB Model is part of the Soulprint Archetype Framework, built to predict the Ujamaa score (0.0–1.0) of text.
Ujamaa embodies collaborative power and collective uplift, rooted in teamwork, shared responsibility, and mutual aid.
The Ujamaa XGB Model is part of the Soulprint Archetype Framework, designed to estimate a continuous "Ujamaa score" (0.0–1.0) from text.
Ujamaa represents the archetype of collaborative strength and collective uplift—rooted in principles of cooperation, mutual aid, and shared responsibility.
This model was trained using XGBoost regression on sentence embeddings generated with all-mpnet-base-v2. The outputs represent how strongly a piece of text reflects Ujamaa’s collaborative essence.
The model was trained with 5-fold cross-validation to ensure generalization.
✅ Final model retrained on full dataset and saved as Ujamaa_xgb_model.json
You can load the model directly from Hugging Face Hub (replace with your repo ID once pushed):
import xgboost as xgb
from sentence_transformers import SentenceTransformer
from huggingface_hub import hf_hub_download
# -----------------------------
# 1. Download model from Hugging Face Hub
# -----------------------------
REPO_ID = "mjpsm/Ujamaa-xgb-model"
FILENAME = "Ujamaa_xgb_model.json"
model_path = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
# -----------------------------
# 2. Load model + embedder
# -----------------------------
model = xgb.XGBRegressor()
model.load_model(model_path)
embedder = SentenceTransformer("all-mpnet-base-v2")
# -----------------------------
# 3. Example prediction
# -----------------------------
text = "We organized food drives together, making sure every family had what they needed."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Ujamaa Score:", round(float(score), 3))
Primary Use Case: Evaluate how strongly text aligns with the Ujamaa archetype (collaboration, teamwork, mutual uplift).
Applications:
Narrative analysis in community and cultural contexts
AI-driven reflection tools for cooperative leadership
Enhancing RAG agents and story-based AI with archetypal grounding
The model reflects patterns learned from synthetic + curated data and may not generalize perfectly to all real-world contexts.
Scores are continuous signals (0.0–1.0), not binary labels. Thresholds should be set depending on application.
Archetype interpretations are cultural and symbolic, not universal truth markers.