gen_20_basic_variants_including_cost_error: Generate 20 basic variants of a problem

gen_20_basic_variants_including_cost_errorR Documentation

Generate 20 basic variants of a problem

Description

Create 1 correct problem and 1 wrap of that correct problem, then from each of those, create 4 apparent variants using the following errors: FP only, FN only, FP and FN, and finally, FP and FN with matching counts. Based on each of these 10 variants (2 correct and 4 apparent for each of the 2), then create another apparent version of each problem that includes cost error too. This gives a total of 20 problems.

Usage

gen_20_basic_variants_including_cost_error(
  parameters,
  starting_dir,
  integerize,
  err_amt = NA
)

Arguments

parameters

parameters list for the run, usually derived from project.yaml and can have a varying number and set of elements depending on the run

starting_dir

string containing full path of top directory where problems and/or runs are to be created

integerize

function to use in converting floats to ints

err_amt

numeric amount of error to add in creating apparent problems

Value

Returns nothing.


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.