Downloads · 30 days
0
mjpsm/Ayo-xgb-model
Ayo-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. It is set up for xgboost. The card lists the license as mit.
- Type: XGBoost Regressor - Embeddings: all-mpnet-base-v2 (SentenceTransformer) - Trained on: Ayo Soulprint dataset (~1,100 rows, balanced bins) - Target: Continuous score from 0.00 → 1.00
Downloads · 30 days
0
Access
Public
Updated Sep 29, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json2 MB · 100%
From the Hugging Face model README
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/Ayo-xgb-model"
FILENAME = "Ayo_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 = "The crowd cheered loudly as the drums pounded."
embedding = embedder.encode([text])
score = model.predict(embedding)[0]
print("Predicted Ayo Score:", round(float(score), 3))