View source: R/reweights_test.R
| reweights_test | R Documentation | 
The aims of this function is to provide to a test Document-Term Matrix which will be used for test/predict the original weights computed for the training matrix.
reweights_test(target, original, normalize = TRUE, ..., fun = idf, original_weights = NULL, force = FALSE)
| target | A  | 
| original | The original  | 
| normalize | (lgl) if  | 
| ... | Other parameters to called functions (e.g.  | 
| fun | The  | 
| original_weights | optional numerical vector of weights to be used directly for the rewaighting of target | 
| force | (lgl) if  | 
an object of class DocumentTermMatrix and
simple_triplet_matrix (in the order).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.