Downloads · 30 days
5
1% of all-time downloads
svhozt/profile_based_recommendation_model.keras
profile_based_recommendation_model.keras is a machine learning model from svhozt. 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 keras. The card lists the license as apache-2.0.
Here’s a draft for a model card that you can use for Hugging Face, detailing the purpose, training data, architecture, and intended use of your recommendation model:
Downloads · 30 days
5
1% of all-time downloads
All-time downloads
849
Public
Repo size
9.1 MB
Likes
2
Public
Click a slice to open those files.
.keras3 MB · 100%
From the Hugging Face model README
Here’s a draft for a model card that you can use for Hugging Face, detailing the purpose, training data, architecture, and intended use of your recommendation model:
This model is a profile-based movie recommendation system designed to recommend movies based on user demographics and genre preferences. It was trained on the MovieLens 1M dataset and uses demographic and genre preferences to create user profiles through clustering. By leveraging user profiles and movie embeddings, the model provides movie recommendations tailored to each user’s interests.
The model is built using TensorFlow and Keras and employs an embedding-based architecture:
The model was trained on the MovieLens 1M dataset by GroupLens. The dataset contains 1 million ratings from 6,040 users on 3,900 movies.
This model is intended to provide movie recommendations based on user profile clusters. By embedding user profiles and movies into a shared space, it provides recommendations by finding the best matching movies for a particular user profile.
To use this model, you'll need:
from tensorflow import keras
import numpy as np
# Load the trained model
model = keras.models.load_model("profile_based_recommendation_model.keras")
# Example: Generate recommendations for a user with profile_id 3 for movies with IDs 10, 50, and 100
profile_id = np.array([3])
movie_ids = np.array([10, 50, 100])
# Predict scores
predictions = model.predict([profile_id, movie_ids])
# Display predicted scores for each movie
for movie_id, score in zip(movie_ids, predictions):
print(f"Movie ID: {movie_id}, Predicted Score: {score}")
If you use this model or the dataset, please cite the MovieLens dataset as follows:
@article{harper2015movielens,
title={The MovieLens datasets: History and context},
author={Harper, F Maxwell and Konstan, Joseph A},
journal={ACM Transactions on Interactive Intelligent Systems (TIIS)},
volume={5},
number={4},
pages={1--19},
year={2015},
publisher={ACM New York, NY, USA}
}
Thanks to GroupLens Research for providing the MovieLens dataset and the open-source tools that make it accessible for research purposes.
This model card can be customized further if you want to add more specific instructions or additional use cases.