Soulprint Models
Collection
15 items • Updated
all-mpnet-base-v2 This 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 SentenceTransformer n_estimators=1200 learning_rate=0.03 max_depth=10 subsample=0.9 colsample_bytree=0.9 reg_alpha=0.5 reg_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))