Downloads · 30 days
0
mjpsm/Ubuntu-xgb-model
Ubuntu-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 Ubuntuxgbmodel is part of the Soulprint archetype family of models. It predicts an Ubuntu alignment score (0.0–1.0) for text inputs, where Ubuntu represents "I am because we are": harmony, inclusion, and community…
Downloads · 30 days
0
Access
Public
Updated Sep 25, 2025
Repo size
906 KB
Likes
0
Public
Click a slice to open those files.
.json1.2 MB · 58%
From the Hugging Face model README
The Ubuntu_xgb_model is part of the Soulprint archetype family of models.
It predicts an Ubuntu alignment score (0.0–1.0) for text inputs, where Ubuntu represents "I am because we are": harmony, inclusion, and community bridge-building.
This model is trained with XGBoost regression on a custom dataset of 918 rows, balanced across Low, Medium, and High Ubuntu examples. Data was generated using culturally diverse contexts (family, school, workplace, community, cultural rituals).
"all-mpnet-base-v2"XGBRegressorn_estimators=300learning_rate=0.05max_depth=6subsample=0.8colsample_bytree=0.8random_state=42On the held-out test set (20% of data):
import joblib
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/Ubuntu_xgb_model" # change if you used a different repo name
FILENAME = "Ubuntu_xgb_model.pkl"
model_path = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
# -----------------------------
# 2. Load model + embedder
# -----------------------------
model = joblib.load(model_path)
embedder = SentenceTransformer("all-mpnet-base-v2")
# -----------------------------
# 3. Example prediction
# -----------------------------
text = "During our class project, I made sure everyone’s ideas were included."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Ubuntu Score:", round(float(score), 3))
Community storytelling evaluation
Character alignment in cultural narratives
AI assistants tuned to Afrocentric archetypes
Training downstream models in the Soulprint system
Dataset is synthetic (generated + curated). Real-world generalization should be validated.
The model is context-specific to Ubuntu values and may not generalize beyond Afrocentric cultural framing.
Scores are approximate indicators — interpretation depends on narrative context.