From 68c6b5e414010f03c3fac5c50f705d616a2c9b12 Mon Sep 17 00:00:00 2001 From: "xuanyi.wang" Date: Mon, 22 May 2023 20:55:00 +0200 Subject: [PATCH] Update page 'Solutions to the questions concerning R language' --- Solutions to the questions concerning R language.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Solutions to the questions concerning R language.md b/Solutions to the questions concerning R language.md index a27a3a4..79acde6 100644 --- a/Solutions to the questions concerning R language.md +++ b/Solutions to the questions concerning R language.md @@ -215,4 +215,6 @@ table(OJ.test$Purchase, test.pred) ``` ``` ## [1] 0.1556 -``` \ No newline at end of file +``` +The radial basis kernel with default gamma creates 367 support vectors, out of which, 184 belong to level 𝙲𝙷 and remaining 183 belong to level 𝙼𝙼. The classifier has a training error of 14.7% and a test error of 15.6% which is a slight improvement over linear kernel. We now use cross validation to find optimal gamma. +