On Thu, Aug 16, 2012 at 12:05 AM, Andrei Arsene Simion
wrote:
> Hi,
>
> If I do a standard svm regression with e1071
>
> x <- seq(0.1, 5, by = 0.05)
> y <- log(x) + rnorm(x, sd = 0.2)
> m <- svm(x, y)
>
> we can do predict(m,x) to get the fitted values. But what if I wan tho get
> them by hand?
Hi,
If I do a standard svm regression with e1071
x <- seq(0.1, 5, by = 0.05)
y <- log(x) + rnorm(x, sd = 0.2)
m <- svm(x, y)
we can do predict(m,x) to get the fitted values. But what if I wan tho get them
by hand?
Seem to me like it should be
w = t(m$coefs)%*%m$SV
x.scaled = scale(x, m$x.s
2 matches
Mail list logo