mlrMBO
mlrMBO copied to clipboard
allow impute function to set extras attribute
Allow things like
makeMBOControl(
impute.y.fun = function(x, y, opt.path, ...) {
structure(-log(1/4), extras = list(metainfo = 2)) # log loss of dumbest possible prediction for 4 classes (i.e. nucleotide prediction)
}, ...
)
otherwise, setting extras attribute in the actual function gives an error whenever a value is imputed, since opt.path doesn't allow points to have missing "extra(s)" for individual points.
Would you include that in a test? Does not have to be a new one. You could just add the extras into an existing one.
I will do this when I get around to it
@jakob-r this has tests now, you can merge it when / if you are making a new release for CRAN...