plotResults: Methods for Results objects.

Description Usage Arguments Details Value Examples

View source: R/plotResults.R

Description

Provide standard methods for manipulating Results objects.

Usage

1
2
3
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.

Details

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

Value

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

Examples

 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" )

GACFF documentation built on Dec. 20, 2019, 5:07 p.m.