Utility functions used internally by recommender algorithms. See files starting
with RECOM
in the package's R
directory for examples of usage.
returnRatings(ratings, newdata,
type = c("topNList", "ratings", "ratingMatrix"),
n, randomize = NULL, minRating = NA)getParameters(defaults, parameter)
a realRatingMatrix.
a realRatingMatrix.
type of recommendation to return.
max. number of entries in the top-N list.
randomization factor for producing the top-N list.
do not include ratings less than this.
list with parameters and default values.
list with actual parameters.
returnRatings
is used in the predict function of recommender algorithms
to return different types of recommendations.
getParameters
is a helper function which checks parameters for
consistency and provides default values. Used in the Recommender constructor.