Create a VW data file from a R data.frame object
1 2 3 4 |
data |
[data.frame] data.frame object to be converted |
file_path |
[string] file name of the resulting data in VW-friendly format |
namespaces |
[list or yaml file] name of each namespace and each variable for each namespace can be a R list, or a YAML file example namespace with the IRIS database: namespaces = list(sepal = list('Sepal.Length', 'Sepal.Width'), petal = list('Petal.Length', 'Petal.Width') this creates 2 namespaces (sepal and petal) containing the features defined by elements of this lists. |
keep_space |
[string vector] keep spaces for this features
Example:"FERRARI 4Si"
With |
fixed |
[string vector] fixed parsing for this features
Similar to |
targets |
[string or string vector]
If |
probabilities |
[string vector] vectors with action probabilities for Contextual Bandit algorithm. |
weight |
[string] weight (importance) of each line of the dataset. |
base |
[string] base of each line of the dataset. Used for residual regression. |
tag |
[string] tag of each line of the dataset. |
multiline |
[integer] number of labels (separate lines) for multilines example |
append |
[bool] data to be appended to the result file |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.