get_test_task: Get a fake task

Description Usage Arguments Value

View source: R/testing.R

Description

Get a fake task

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_test_task(
  fake_data = NULL,
  fake_target = "target",
  training_fields = "feature",
  stage = "prepare",
  resampling_strategy = "holdout",
  processing_pipeline = mlr3pipelines::PipeOpNOP$new(),
  learner = mlr3::LearnerClassifFeatureless$new(),
  measures = mlr3::msr("classif.acc")
)

Arguments

fake_data

Data that is stored as "hist_data". If none is provided, some data will be automatically set.

fake_target

character(1) name of the column that should be use as target for the learning.

training_fields

character() name of the feature columns to learn from

stage

character(1)
Either "load", "split", "prepare", "train" and "evaluate". The output task will be at the end of the specified stage.

resampling_strategy

character(1) Either "holdout" or "cv". The resampling strategy of the "train" stage.

processing_pipeline

mlr3pipelines::PipeOp A preparation pipeline used for the "prepare" stage.

learner

mlr3::Learner A learner used at the "train" stage.

measures

mlr3::Measure A list of measures used at the "evaluate" stage.

Value

An sf_task, at the specified "stage"


signaux-faibles/rsignauxfaibles documentation built on Dec. 2, 2020, 3:24 a.m.