After training the model, you can generate predictions. To
generate predictions, use the sample data from the
testing_dataset
dataset.
NULL
values for any row in the
users
or items
columns
generates an error.
Complete the following tasks:
The options
for
ML_PREDICT_ROW
and
ML_PREDICT_TABLE
include the following:
topk
: The number of recommendations to provide. The default is3
.-
recommend
: Specifies what to recommend. Permitted values are:ratings
: Predicts ratings that users will give. This is the default value.items
: Recommends items for users.users
: Recommends users for items.users_to_items
: This is the same asitems
.items_to_users
: This is the same asusers
.items_to_items
: Recommends similar items for items.users_to_users
: Recommends similar users for users.
remove_seen
: Iftrue
, the model does not repeat existing interactions from the training table. It only applies to the recommendationsitems
,users
,users_to_items
, anditems_to_users
.
-
Learn about the different ways to generate specific recommendations with a recommendation model: