Description Active bindings Methods
A base class describe a machine learning task specification. A task is
defined by a Options and keys
which is named character vector specifiyng
option's key. The main functionality is evaluate quoted call arguments and
assign the acutal values to be called in the later task.
options
A Options object.
keys
A named character vector of keys.
formulas
A Formulas object.
datasets
A Datasets object.
seeds
A Seeds object.
models
A Models object.
measure
A Measure object.
labels
A vector of labels (response variable).
label_var
A label (response) variable name.
label_levels
Levels of label (response) variable.
task_type
A task type.
show_progress
Wheather to show progress messages.
keep_data
Wheather to keep data.
parallel
Wheather to calculate parallely.
formula
A tasks' formula.
dataset
A task's dataset.
train
A task's train data.
test
A task's test data.
resample_call
A task's resample call.
seed
A task's seed.
model
A task's model.
search_seed
A task's search seed for resampling.
cv_seed
A task's cv seed for resampling.
model_seed
A task's model seed.
id_col
A task's datasets' id_col.
test_ids
A task's datasets' test_ids.
preproc_call
A task's preproc call.
data_call
A task's data call.
fit_call
A task's fit call.
pred_call
A task's prediction call.
has_test_labels
Wheather the dataset has test labels.
result
A task result.
done
Wheather the task is finished.
new()
Construct a new Task
class object.
Task$new(options = NULL, keys = NULL)
options
A Options class object.
keys
A named character vector of keys. Names must be "formula", "dataset", "resample", "seed", "model", "preproc", "fit_param" and values must be key of the each options.
A new Task
class object
print()
Print object.
Task$print()
print_task()
Print task object.
Task$print_task(title = " Task ", key_width = 14L)
title
A character scalar of printed title.
key_width
A integer scalar of key column width.
eval_call_args()
Evaluate call arguments in the task environment.
Task$eval_call_args(call = NULL)
call
call
object.
A call
object.
clone()
The objects of this class are cloneable with this method.
Task$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.