predict.textmodel_newsmap {newsmap} | R Documentation |
Prediction method for textmodel_newsmap
Description
Predict document class using trained a Newsmap model
Usage
## S3 method for class 'textmodel_newsmap'
predict(
object,
newdata = NULL,
confidence = FALSE,
rank = 1L,
type = c("top", "all"),
rescale = FALSE,
min_conf = -Inf,
min_n = 0L,
...
)
Arguments
object |
a fitted Newsmap textmodel. |
newdata |
dfm on which prediction should be made. |
confidence |
if |
rank |
rank of the class to be predicted. Only used when |
type |
if |
rescale |
if |
min_conf |
return |
min_n |
set the minimum number of polarity words in documents. |
... |
not used. |
[Package newsmap version 0.9.0 Index]