We are using SparkML's ALS implementation to give user-product recommendations. This is working great. We want to expand the recommendations to product-product similarity.
In other words given a products suggest similar products that users purchase. How can we expand MatrixFactorizationModel to get product-product similarity to get an API like List<Rating> getSimilarProducts(int productId)
All I could find is mahout's implementation of itemsimilarity
which is like redoing the whole job again. Is there a way we can use ALS output to achieve the goal.