Comments (4)
- 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.
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.
@mllg shall we define what happens now (after hamgout call) an close here?
from mlr3.
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)
- Measure's check_prerequisites is ignored when calling `$score()` on a ResampleResult
- NumFOCUS funding HOT 1
- ResampleResult and BenchmarkResult's `$score()` behave surprisingly when passing a `predict_set`
- Release mlr3 0.18.0
- columns that are not present during prediction that are not targets
- Feature Request: Predict type `"ci"` in addition to `"se"` HOT 1
- `$score()` has surprising behaviour when passing the argument `predict_sets`
- Callback Hooks for `resample()` / `benchmark()`
- Feature Request: Featureless Learner should allow to specify metric to be optimized
- Column role "weight" HOT 2
- fallback learner should maybe be a warning HOT 1
- Error in benchmark_grid A Resampling is instantiated for a task with a different number of observations HOT 4
- why mlr3 randomforest importance is different from randomForest package HOT 2
- i am sorry i do not know how to delete it
- who is author of Resampling? HOT 6
- Release mlr3 0.17.1
- resample() does not set data_prototype (and task_prototype), which some learners rely on HOT 6
- get column names used to train a learner? HOT 2
- Measure Documentations could be improved
- predict_time can be (kind of) wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlr3.