Description Usage Arguments Value Author(s) Examples
View source: R/networkBasedSVM.R
Obtains predictions from a fitted networkBasedSVM object.
1 2 |
object |
a fitted object of class inheriting from 'networkBasedSVM' |
newdata |
a matrix with variables to predict |
... |
currently ignored. |
the predictions.
Marc Johannes JohannesMarc@gmail.com
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(pathClass)
data(example_data)
matched <- matchMatrices(x=x, adjacency=adjacency.matrix, mapping=mapping)
ad.list <- as.adjacencyList(matched$adjacency)
fit = fit.networkBasedSVM(matched$x[1:5,], y[1:5], DEBUG=TRUE, adjacencyList=ad.list,
lambdas=10^(-1:2), sd.cutoff=50)
predict(fit, newdata=matched$x[6:10,])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.