Skip to content

SVM module: scaling data applied to new test set without using SVM again

2 messages · seidel@micro-biolytics.com, David Meyer

1 day later
#
seidel at micro-biolytics.com wrote:
[note: in the `x.scale' element of the fitted model]
the function `scale' has two parameters: `center' and `scale'.
So, you could do sth. like:

scale(newdata, 
      center = model$x.scale$"scaled:center", 
      scale = model$x.scale$"scaled:scale")

best,
	
David