make*Param: assert for len
Closed this issue · 5 comments
berndbischl commented
this is missing
we need this for normal params and vec params
berndbischl commented
and sometimes uninformative errors are produced
berndbischl commented
also check that for normal param lengths can then not be set to NA
berndbischl commented
- 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'
berndbischl commented
- also check that for normal param lengths can then not be set to NA
unit tested this now
berndbischl commented
more problems i cannot see now, closing