-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
add convert oml dataset to mlr3 #444
base: master
Are you sure you want to change the base?
Conversation
tests/testthat/test_local_convertOMLSplitsToMlr3.R:12:40: style: Only use double-quotes. task$input$estimation.procedure[['type']]= oml.types[i]
^~~~~~ tests/testthat/test_local_convertOMLSplitsToMlr3.R:12:48: style: Put spaces around all infix operators (except exponentiation). task$input$estimation.procedure[['type']]= oml.types[i]
~^ |
assertClass(obj, "OMLDataSet") | ||
assertSubset(target, obj$colnames.new) | ||
assertFlag(ignore.flagged.attributes) | ||
assertFlag(drop.levels) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some assertions missing (mlr.task.id, fix.colnames, verbosity)
return(mlr.task) | ||
} | ||
|
||
replaceOMLDataSetString = function(string, data.set) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function already exists in convertOMLDataSetToMlr.R
. unless we plan to remove mlr support this should not be duplicated. Same with guessTaskType
and possibly others.
n.repeats = estim.proc$parameters[["number_repeats"]] | ||
n.folds = estim.proc$parameters[["number_folds"]] | ||
percentage = as.numeric(estim.proc$parameters[["percentage"]]) | ||
data.splits = estim.proc$data.splits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The data splits need to be stored
No description provided.