mlr-org/ParamHelpers

make*Param: assert for len

Closed this issue · 5 comments

this is missing
we need this for normal params and vec params

and sometimes uninformative errors are produced

also check that for normal param lengths can then not be set to NA

  1. normal violations are checked now

makeNumericVectorLearnerParam("x", len = "aa")

Assertion failed. One of the following must apply:

  • checkCount(len): Must be of type 'count', not 'character'
  • checkClass(len): Must have class 'expression', but has class 'character'
  1. also check that for normal param lengths can then not be set to NA

unit tested this now

more problems i cannot see now, closing