Hi Everyone,
I would like to scale a data frame and then using the same scaling
parameters scale on another data frame. This will be helpful in scaling the
test dataset based on train dataset's scaling parameters. I couldn't find
any utility functions that do this. Any suggestions on how to approa
(x, 2L, attr(trained, "scaled:scale"), FUN = "/")
> attr(x, "scaled:center") <- attr(trained, "scaled:center")
> attr(x, "scaled:scale") <- attr(trained, "scaled:scale")
> return(x)
> }
>
> ## scale y from s
>
2 matches
Mail list logo