Learn R Programming

GACFF (version 1.0)

plotResults: Methods for Results objects.

Description

Provide standard methods for manipulating Results objects.

Usage

plotResults (active_users, obj_Results, 
                       xlab = "Iteration", ylab = "MAE",
           main = "MAE (New KNN+GA) in CF Recommender Systems", ...)

Arguments

active_users

A vector of all active users id.

obj_Results

An object of class "Results".

xlab, ylab, main

Graphics parameters.

Additional arguments passed on to the method.

Value

a plot of the history of the process is produced with a NULL return value.

Details

Methods for standard generic functions when dealing with objects of class "Results"

Examples

Run this code
# NOT RUN {
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" )
# }

Run the code above in your browser using DataLab