尝试在使用评估方案后仅提取 RMSE 值并评估超过 10 次迭代。下面是我的代码:
e = evaluationScheme(Rmat, method="split", train=0.8, given=3, goodRating=4, k=10)
algorithms = list(
"user-based CF" = list(name="UBCF", param=list(nn=25)),
"item-based CF" = list(name="IBCF", param=list(k=25))
)
results = evaluate(e, algorithms, type = "ratings",
n=c(20))
运行getResults(results[['user-based CF']])[1]
给出:
[[1]]
RMSE MSE MAE
[1,] 1.204975 1.451964 0.9438337
现在,我怎样才能只提取 RMSE 值?我尝试了各种方法,包括getResults(results[['user-based CF']])[1, 1]
并尝试使用 colnames 进行提取。请帮忙。