NLoNPredict | R Documentation |
Train a NLoN model using glmnet.
NLoNPredict( model, text, lambda = "lambda.min", type = "class", features = TriGramsAndFeatures )
model |
A glmnet model as returned by |
text |
A character vector containing the text to predict. |
lambda |
Lambda parameter to pass to
|
type |
Type of prediction made by
|
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. |
The output of predict.glmnet
.
predict.glmnet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.