Soulprint Models
Collection
15 items • Updated
The Zamani Archetype Regressor is part of the Soulprint framework, designed to measure foresight and long-term vision in text.
It predicts a continuous Zamani foresight score (0.0–1.0) using XGBoost regression on top of SentenceTransformer embeddings.
Zamani_xgb_model.jsonThis indicates the model explains 83% of the variance in foresight scores — a strong fit given the dataset size and complexity.
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/Zamani-xgb-model"
FILENAME = "Zamani_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 = "She planted seeds for trees her grandchildren would one day sit under."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Zamani Score:", round(float(score), 3))