Closed annette987 closed 5 years ago
hi. this will not be changed. ids are freely user-settable. just select 2 different ids for the learners, and everything works.
nobobdy forces you to select the classname as the id, you can essentailly call the learners "foo" and "bar", or in your case "cox-random", "cox-sfs"
I'd like to suggest that duplicate learner ids can sometimes be valid. For example, I am running a benchmark and would like to include lasso and ridge regression, both of which are implemented in glmnet. This is the code I have written:
and I get the error message:
Error in ensureBenchmarkLearners(learners) : Learners need unique ids!
Here is another example, where I would like to benchmark two different feature selection methods on the same learner: `
Again I get the error message:
Error in ensureBenchmarkLearners(learners) : Learners need unique ids!
Is this restriction necessary? If so, how can I perform a benchmark on two different versions of the same learner? Or am I doing things the wrong way?