Train the model:
User Rating (TrainUsersRatingModel):
Bought Together (TrainBoughtTogetherModel):
Make Predictions:
To make predictions just use the Server Actions available for that. Pass the a single Object (User Rating or Item) or list, depending of the Action that is being used, and one should get a prediction. It's necessary that you have trained respective model to make predictions.