Downloads · 30 days
0
ysakhale/cmu-rating-predictor
cmu-rating-predictor is a machine learning model from ysakhale. 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 is an off-the-shelf Random Forest regressor model that predicts landmark ratings based on feature characteristics. The model helps validate existing ratings and can predict ratings for new landmarks based on thei…
Downloads · 30 days
0
Access
Public
Updated Oct 9, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py7.7 KB · 58%
From the Hugging Face model README
This is an off-the-shelf Random Forest regressor model that predicts landmark ratings based on feature characteristics. The model helps validate existing ratings and can predict ratings for new landmarks based on their properties.
Training Score: 0.85-0.90
Cross-validation Score: 0.75-0.80
Mean Absolute Error: 0.35
from model import RatingPredictor, load_model_from_data
# Load and train model from landmarks data
predictor = load_model_from_data('data/landmarks.json')
# Predict rating for a landmark
landmark = {
'id': 'example-landmark',
'indoor/outdoor': 'indoor',
'time taken to explore': 45,
'Class': ['Culture', 'Research'],
'geocoord': {'lat': 40.4433, 'lon': -79.9436},
'rating': 4.5
}
predicted_rating = predictor.predict_rating(landmark)
print(f"Predicted rating: {predicted_rating:.2f}")
# Get feature importance
importance = predictor.get_feature_importance()
for feature, imp in sorted(importance.items(), key=lambda x: x[1], reverse=True)[:5]:
print(f"{feature}: {imp:.3f}")
model.py: Main model implementationREADME.md: This model cardThe model identifies these as the most important features:
@misc{cmu-explorer-rating-predictor,
title={Rating Prediction Model for CMU Landmarks},
author={Yash Sakhale, Faiyaz Azam},
year={2025},
url={https://huggingface.co/spaces/ysakhale/Tartan-Explore}
}
For questions about this model, please refer to the CMU Explorer Space.