Predict from a fitted cnn model
# S3 method for citocnn
predict(
object,
newdata = NULL,
type = c("link", "response", "class"),
device = c("cpu", "cuda", "mps"),
...
)
prediction matrix
a model created by cnn
new data for predictions
which value should be calculated, either raw response, output of link function or predicted class (in case of classification)
device on which network should be trained on.
additional arguments