Use the aa.knn.recommender.train() function to generate a model from training data (users and the ratings that they assigned to products) to input to the aa.knn.recommender.predict() function.
Use the aa.knn.recommender.train() function to generate a model from training data (users and the ratings that they assigned to products) to input to the aa.knn.recommender.predict() function.