compute_BART_model | R Documentation |
The prediction engine of the framework. It produces a model which assigns a
probability distribution for each record of the probability of being relevant
(i.e., positive label). It is not used alone but inside
enrich_annotation_file()
.
compute_BART_model( train_data, Y, preds = NULL, save = FALSE, folder = getwd(), name = as.character(Y), rebuild = FALSE, num_trees = 50, k = 2, num_iterations_after_burn_in = 2000, run_in_sample = FALSE, mem_cache_for_speed = TRUE, use_missing_data = TRUE, verbose = TRUE, ... )
train_data |
A Document Term Matrix with an outcome column. if
|
Y |
The name of the outcome column in the data set. |
preds |
A vector of column names to use as features. |
save |
Whether to save the model to disk, with a file name given in
|
folder |
Where to look for/create the model backup file. |
name |
The name of the model backup file. If the file exists and
|
rebuild |
If |
num_trees, k, num_iterations_after_burn_in, run_in_sample, mem_cache_for_speed, use_missing_data, verbose |
|
... |
More argument to pass to |
This implementation is built over bartMachine::bartMachine()
.
An object of class bartMachine
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.