Downloads · 30 days
0
mjpsm/Bisa-xgb-model
Bisa-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.
- Model Name: Bisa Soulprint Regression (XGBoost) - Author: Mazamesso “Mazo” Meba / Coding in Color (MyVillage Project) - Framework: XGBoost Regressor + SentenceTransformer embeddings - Embedding Model: all-mpnet-base…
Downloads · 30 days
0
Access
Public
Updated Sep 28, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json2.5 MB · 100%
From the Hugging Face model README
all-mpnet-base-v2This model is part of the Soulprint Archetype system, which generates continuous scores (0.01–0.99) for the Bisa archetype. Bisa relates to endurance, resilience, and the capacity to persist within community and cultural contexts.
The model is trained on 1,308 balanced examples, evenly distributed across low (0.01–0.39), mid (0.40–0.69), and high (0.70–0.99) ratings. Inputs are short text statements (1–5 sentences), and outputs are continuous values representing Bisa intensity.
all-mpnet-base-v2 SentenceTransformern_estimators=1200learning_rate=0.03max_depth=10subsample=0.9colsample_bytree=0.9reg_alpha=0.5reg_lambda=5This means the model explains ~73% of the variance in Bisa scores.
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/Bisa-xgb-model"
FILENAME = "Bisa_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 = "Despite noticing errors, I stayed quiet and accepted the outcome."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Bisa Score:", round(float(score), 3))