Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

bakopyan
Copy link
Contributor

@bakopyan bakopyan commented Sep 3, 2019

No description provided.

@lintr-bot
Copy link

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)
Copy link

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) {
Copy link

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
Copy link
Member

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

@mllg mllg self-requested a review October 15, 2019 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants