Giter Site home page Giter Site logo

Comments (4)

jakob-r avatar jakob-r commented on May 15, 2024
  1. If somebody wants to benchmark over multiple measures it's his fault. The result just contain missing values. Plots and tables should work fine nonetheless:

(e.g. the following will just have some boxes missing)

library(ggplot2)
set.seed(1)
res = data.frame(score = runif(50), task = sample(c("a","b"), 50, TRUE), learner = sample(c("A","B"), 50, TRUE), measure = sample(paste0("measure", 1:10), 50, TRUE))
ggplot(res, aes(x = learner, y = score)) + geom_boxplot() + facet_grid(task~measure)

library(dplyr)
res %>% group_by(learner, task, measure) %>% summarise(score_mean = mean(score))

I even would not care about missing scores. If you throw in tasks with different measures you might not be able to compare them anyway (if they had the same measure)

from mlr3.

berndbischl avatar berndbischl commented on May 15, 2024

Storing measures as part of the task looked like a good idea first, but complicates things for benchmarks where there are different tasks and different measures.

michel I find this rather important (and liked the previous design)

can you please provide a CONCRETE example what could go wrong now, in your opinion? because i dont see this, yet.

I am assuming this:
I habe tasks t_1, ..., t_k, each with a potentially different list of measures.
benchmark takes an arbitrary input design table describing the exps: task | learner | resamping

where is the problem now? I assumed the result dt is a dt where each row is an experiment.

from mlr3.

berndbischl avatar berndbischl commented on May 15, 2024

@mllg shall we define what happens now (after hamgout call) an close here?

from mlr3.

mllg avatar mllg commented on May 15, 2024

Each experiment now additionally stores the measures (as an extra slot/column). You can now optionally provide a list of measures to e$score(), resample() and benchmark(), with a fallback to task$measures to keep the API simple. Note that this can lead to benchmark results with different performance measures (and as a result, missing values in the performance aggregation). Still todo: Add methods to calculate performance values for missing or additional measures.

from mlr3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.