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

Why do we need an equivalent measure in mlr <-> OpenML to download tasks #448

Open
pfistfl opened this issue Oct 16, 2019 · 0 comments
Open

Comments

@pfistfl
Copy link
Collaborator

pfistfl commented Oct 16, 2019

convertOMLMeasuresToMlr = function(measures) {
  if (measures == "") return(NULL)
  lookup = lookupMeasures()
  assertSubset(measures, names(lookup))
  mlr.measures = lookup[measures]
  #mlr.measures = lapply(mlr.measures, mlr::setAggregation, aggr = mlr::test.join)
  return(mlr.measures)
}

The assert_subset is not required IMHO as we (at this point atleast) do not do anything with the measure. Instead if no equivalent is found, we could just map to a default, e.g. acc etc.

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

No branches or pull requests

1 participant