Update page 'Solutions to the questions concerning R language'

xuanyi.wang
2023-05-22 20:55:31 +02:00
parent 68c6b5e414
commit 9ffbe9f1ae
+1 -1
@@ -216,5 +216,5 @@ table(OJ.test$Purchase, test.pred)
```
## [1] 0.1556
```
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.
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.