Mahout has support for recommending elements using the API method:
ItemBasedRecommender.mostSimilarItems(int productid, int maxResults, Rescorer rescorer)
But in Spark Mllib, it seems that the APIs in ALS can retrieve recommended products, but the userid should be provided through:
MatrixFactorizationModel.recommendProducts(int user, int num)
Is there a way to get recommended products based on a similar product without having to provide user identification information similar to how mahout implements item-based recommendation.
recommendation-engine mahout apache-spark apache-spark-mllib
user321532
source share