| predict.citommn | R Documentation |
This function generates predictions from a Multi-Modal Neural Network (MMN) model that was created using the mmn function.
## S3 method for class 'citommn'
predict(
object,
newdata = NULL,
type = c("link", "response", "class"),
device = NULL,
batchsize = NULL,
return_embeddings = FALSE,
...
)
object |
a model created by |
newdata |
A list containing the new data for which predictions are to be made. The dimensions of the elements in |
type |
A character string specifying the type of prediction to be made. Options are:
|
device |
Device to be used for making predictions. Options are "cpu", "cuda", and "mps". If |
batchsize |
An integer specifying the number of samples to be processed at the same time. If |
return_embeddings |
return the embeddings (output of the last hidden layer of the fusion network) instead of the predictions. Default is |
... |
Additional arguments (currently not used). |
A matrix of predictions. If type is "class", a factor of predicted class labels is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.