Description Usage Arguments Value Examples
Calculate the loss for a model in predicting the -1/+1 labeling. If new text and labeling given, then calc loss on the new text and labeling. This can be useful for cross validation and train-test splits.
1 2 |
model.blob |
The model returned from |
new.text |
New text (string or tm Corpus) to predict labeling for |
new.labeling |
Labeling to go with new text. |
loss |
Type of loss to calc for. |
Three numbers: total loss, loss from prediction, loss from penalty term
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.