-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print function for DiscreteVectorLearnerParam with unknown length is broken #180
Comments
the problem seems to be your default? and should that even be valid? |
if you remove the default=list() it works |
So LearnerParams with unknown vector length should not have a default? |
this also breaks x = makeDiscreteVectorLearnerParam("test", default = list("a", "b"), values = c("a", "b", "c"), len = NA) |
no, i am not saying this. i was just wondering wether the list() is a valid defaults. surely vecparams can have defaults. i was wondering whether the problems comes from the edge case of a default where the vector is length 0. but apparantly other defaults have the same problem |
the method that really breaks in the background is this
|
Also > x= makeNumericVectorLearnerParam("test", default = numeric(0), lower = 0, upper = 10, len = NA)
> x
Type len Def Constr Req Tunable Trafo
1 numericvector NA numeric(0) 0 to 10 - TRUE -
Used: train. works (and I think length 0 vectors should be possible imho). |
i agree. and the problem is as i posted above something else anyway. but of course we can then unit test your case with 0 length too |
The text was updated successfully, but these errors were encountered: