How to use Spark MlLib/Pipelines to build 1 model per each user [duplicate]
问题 This question already has an answer here : Run ML algorithm inside map function in Spark (1 answer) Closed last year . I want to train different models for each user in my dataset. Is there built in support for that in Spark MlLib/Pipelines? If not, what's the easiest/cleanest way to train multiple and separate models for each user? 回答1: Unfortunately Spark-ML doesn't provide the ability to separate concept "single model - single user". But you can make a custom logic as you wish. I see two