Description Usage Arguments Value Examples
vwtest
computes predictions using VW model from vwsetup
predict.vw
compute predictions using parser settings from vwtrain
1 2 3 4 5 6 7 8 9 10 | vwtest(vwmodel, data, probs_path = "", full_probs = FALSE,
readable_model = NULL, readable_model_path = "", quiet = FALSE,
passes = 1L, cache = FALSE, raw = FALSE, progress = NULL,
namespaces = NULL, keep_space = NULL, fixed = NULL,
targets = NULL, probabilities = NULL, weight = NULL, base = NULL,
tag = NULL, multiline = NULL)
## S3 method for class 'vw'
predict(object, data, probs_path = "", full_probs = FALSE,
readable_model = NULL, quiet = FALSE, ...)
|
vwmodel |
[vw] Model of vw class to train. |
data |
[string or data.frame] Path to training data in .vw plain text format or data.frame.
If |
probs_path |
[string] Path to file where to save predictions. |
full_probs |
[bool] Output full predictions in data.frame format. If not, force predictions into a single vector (default). |
readable_model |
[string] Print trained model in human readable format ("hashed") and also with human readable features ("inverted"). |
readable_model_path |
[string] Path to file where to save readable model. |
quiet |
[bool] Do not print anything to the console. |
passes |
[int] Number of times the algorithm will cycle over the data (epochs). |
cache |
[bool] Use a cache for a data file. |
raw |
[bool] Output unnormalized predictions. Default is FALSE. |
progress |
[int/real] Progress update frequency. int: additive, real: multiplicative |
namespaces |
[list or yaml file] For |
keep_space |
[string vector] For |
fixed |
[string vector] fixed parsing for this features
Similar to |
targets |
[string or string vector] For |
probabilities |
[string vector] For |
weight |
[string] For |
base |
[string] For |
tag |
[string] For |
multiline |
[integer] Number of labels (separate lines) for multilines example |
object |
Model of vw class to train for |
... |
Parameters passed to |
Numerical vector containing predictions
1 2 3 4 5 | ext_train_data <- system.file("extdata", "binary_train.vw", package = "rvw")
ext_test_data <- system.file("extdata", "binary_valid.vw", package = "rvw")
test_vwmodel <- vwsetup()
vwtrain(test_vwmodel, data = ext_train_data)
vwtest(test_vwmodel, data = ext_test_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.