Description Usage Arguments Details Value Examples
Provide standard methods for manipulating Results objects.
1 2 3 | plotResults (active_users, obj_Results,
xlab = "Iteration", ylab = "MAE",
main = "MAE (New KNN+GA) in CF Recommender Systems", ...)
|
active_users |
A vector of all active users id. |
obj_Results |
An object of class |
xlab, ylab, main |
Graphics parameters. |
... |
Additional arguments passed on to the method. |
Methods for standard generic functions when dealing with objects of
class "Results"
a plot of the history of the process is produced
with a NULL
return value.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ratings <- matrix(c( 2, 5, NaN, NaN, NaN, 4,
NaN, NaN, NaN, 1, NaN, 5,
NaN, 4, 5, NaN, 4, NaN,
4, NaN, NaN, 5, NaN, NaN,
5, NaN, 2, NaN, NaN, NaN,
NaN, 1, NaN, 4, 2, NaN),nrow=6,byrow=TRUE)
active_users <- c(1:dim(ratings)[2])
Results.out <- Results(ratings, active_users, Threshold_KNN=4, max_scour=5,
min_scour=1, PopSize=100, MaxIteration=50,
CrossPercent=70, MutatPercent=20)
plotResults(active_users, Results.out, xlab = "Iteration", ylab = "MAE",
main = "MAE (New KNN+GA) in CF Recommender Systems" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.