Description Usage Arguments Examples
vwtrain is an interface to train VW model from vwsetup
1 2 3 4 5 | vwtrain(vwmodel, data, readable_model = NULL, readable_model_path = "",
quiet = FALSE, update_model = FALSE, passes = 1L, cache = FALSE,
progress = NULL, namespaces = NULL, keep_space = NULL,
fixed = NULL, targets = NULL, probabilities = NULL,
weight = NULL, base = NULL, tag = NULL, multiline = NULL)
|
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 |
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 |
[logical] Do not print anything to the console |
update_model |
[logical] Update an existing model, when training with new data. |
passes |
[int] Number of times the algorithm will cycle over the data (epochs). |
cache |
[bool] Use a cache for a data file. |
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 examle |
1 2 3 | ext_train_data <- system.file("extdata", "binary_train.vw", package = "rvw")
test_vwmodel <- vwsetup()
vwtrain(test_vwmodel, data = ext_train_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.