Downloads · 30 days
0
mjpsm/Tamu-xgb-model
Tamu-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.
The Tamu Regression Model is part of the Soulprint archetype system, designed to measure expressions of lightness, uplift, and shared resonance in text. It was trained on a balanced dataset of 912 rows, evenly distrib…
Downloads · 30 days
0
Access
Public
Updated Sep 28, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json1.3 MB · 100%
From the Hugging Face model README
The Tamu Regression Model is part of the Soulprint archetype system, designed to measure expressions of lightness, uplift, and shared resonance in text.
It was trained on a balanced dataset of 912 rows, evenly distributed across three continuous output bins:
The model outputs a continuous score between 0.00 and 1.00, where higher values correspond to stronger expressions of Tamu energy.
sentence-transformers/all-mpnet-base-v2reg:squarederror)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/Tamu-xgb-model"
FILENAME = "Tamu_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 = "Inside the library, the pages turned slowly as students whispered."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Tamu Score:", round(float(score), 3))