I am developing a website that will recommend recipes to visitors based on their data. I collect data from their profile, site activity and facebook.
Currently, I have data such as [username / user, recipe rating, age, gender, type (veg / Non veg), cuisine (Italian / Chinese, etc.)]. As for the above functions, I want to recommend new recipes that they have not visited.
I implemented the ALS (Alternating Least Squares) algorithm. In this case, we must prepare the csv, which contains the columns [userId, RecipesId, Rating]. Then we need to prepare this data and create a model by adjusting parameters such as lamdas, Rank, iteration. This model created a recommendation using pyspark.
model.recommendProducts (userId, numberOfRecommendations)
The ALS algorithm accepts only three functions userId, RecipesId, Rating. I canβt enable more features (e.g. type, kitchen, gender, etc.), Besides which I mentioned above (userId, RecipesId, Rating). I want to enable these features, then train the model and make recommendations.
Is there any other algorithm in which I can include the above parameters and make recommendations.
Any help would be appreciated, thanks.
machine-learning pyspark apache-spark-mllib data-science
JAGDISH CHAUDHARI
source share