NLoNModel | R Documentation |
Train a NLoN model using glmnet.
NLoNModel( text, response, features = TriGramsAndFeatures, cv = "glmnet", repeats = 10, verbose = TRUE, ... )
text |
A character vector containing the training text. |
response |
A factor response with levels NL (for natural language) and Not (for not natural language). |
features |
A function computing the feature values (a matrix, list of numeric vectors or data.frame) or a list of functions computing individual feature values. |
cv |
Specify whether to use 10-fold cross-validation and which
function to use ( |
repeats |
Number of repeats of the 10-fold
cross-validation. Currently not implemented for
|
verbose |
If TRUE run cross-validation in verbose mode. |
... |
Additional parameters to pass to
|
A glmnet
trained model.
glmnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.