Downloads · 30 days
0
mjpsm/Imani-xgb-model
Imani-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.
This model is part of the Soulprint archetype system, designed to measure the presence of the Imani (Faithful) archetype in text. It outputs a score between 0.0 and 1.0 that reflects the degree of faith, resilience, a…
Downloads · 30 days
0
Access
Public
Updated Sep 26, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json889 KB · 100%
From the Hugging Face model README
This model is part of the Soulprint archetype system, designed to measure the presence of the Imani (Faithful) archetype in text.
It outputs a score between 0.0 and 1.0 that reflects the degree of faith, resilience, and affirmation expressed.
all-mpnet-base-v2)0.0 – 1.00.008660.892These metrics indicate that the model is highly accurate, with predictions averaging less than 0.1 away from true labels on the 0–1 scale.
You can load the model directly from Hugging Face Hub and run predictions:
import xgboost as xgb
from sentence_transformers import SentenceTransformer
from huggingface_hub import hf_hub_download
# -----------------------------
# 1. Download model from Hugging Face
# -----------------------------
REPO_ID = "mjpsm/Imani-xgb-model"
FILENAME = "Imani_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 reminded my cousin that storms always pass."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Imani Score:", round(float(score), 3))