View source: R/textmodel_mlp.R
| predict.textmodel_mlp | R Documentation |
predict.textmodel_mlp() implements class predictions from a fitted
multilayer perceptron network model.
## S3 method for class 'textmodel_mlp'
predict(
object,
newdata = NULL,
type = c("class", "probability"),
force = TRUE,
...
)
object |
a fitted textmodel_mlp model |
newdata |
dfm on which prediction should be made |
type |
the type of predicted values to be returned; see Value |
force |
make |
... |
not used |
predict.textmodel_mlp returns either a vector of class
predictions for each row of newdata (when type = "class"), or
a document-by-class matrix of class probabilities (when type = "probability").
textmodel_mlp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.