The Nzinga XGBoost Regression Model is part of the Soulprint Archetype Series.
It predicts a courage score (0.0 – 1.0) from input text, reflecting levels of hesitation, partial action, steady resolve, and fearless conviction.
This model is named after Queen Nzinga of Ndongo and Matamba, representing courage, resistance, and unshakable determination.
Architecture: XGBoost Regressor
Input: Text (embedded using all-mpnet-base-v2)
Output: Continuous courage score (float, 0–1)
📚 Training Data
Source: Custom Nzinga regression dataset (balanced across 4 ranges).
Mid (0.3–0.6): measured firmness, small everyday acts of courage
High (0.6–0.9): strong steady action, visible resolve
Peak (0.9–1.0): fearless symbolic acts, full conviction
Sentence lengths were cycled (1, 2–3, 4–5 sentences) to encourage generalization.
Contexts include family, healthcare, online spaces, sports, workplaces, and public gatherings.
🧪 Evaluation
Test Metrics:
MSE: 0.0173
R²: 0.8182
This indicates the model explains ~82% of the variance in courage scores and has low error, making it robust for prediction tasks.
🚀 Example Usage
import xgboost as xgb
from sentence_transformers import SentenceTransformer
from huggingface_hub import hf_hub_download
# -----------------------------# 1. Download model# -----------------------------
REPO_ID = "mjpsm/Nzinga-xgb-model"
FILENAME = "Nzinga_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 = "I stood before the crowd and spoke with steady confidence."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Nzinga Score:", round(float(score), 3))
Runs of mjpsm Nzinga-xgb-model on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About Nzinga-xgb-model huggingface.co Model
Nzinga-xgb-model huggingface.co is an AI model on huggingface.co that provides Nzinga-xgb-model's model effect (), which can be used instantly with this mjpsm Nzinga-xgb-model model. huggingface.co supports a free trial of the Nzinga-xgb-model model, and also provides paid use of the Nzinga-xgb-model. Support call Nzinga-xgb-model model through api, including Node.js, Python, http.
Nzinga-xgb-model huggingface.co is an online trial and call api platform, which integrates Nzinga-xgb-model's modeling effects, including api services, and provides a free online trial of Nzinga-xgb-model, you can try Nzinga-xgb-model online for free by clicking the link below.
mjpsm Nzinga-xgb-model online free url in huggingface.co:
Nzinga-xgb-model is an open source model from GitHub that offers a free installation service, and any user can find Nzinga-xgb-model on GitHub to install. At the same time, huggingface.co provides the effect of Nzinga-xgb-model install, users can directly use Nzinga-xgb-model installed effect in huggingface.co for debugging and trial. It also supports api for free installation.