-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
#747 mergeBenchmarkResults #914
Conversation
#' @export | ||
mergeBenchmarkResults = function(...) { | ||
set = list(...) | ||
for (i in 1:length(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.
use seq_len(set)
@florianfendt |
8d42a0f
to
65356a2
Compare
@berndbischl |
a) all task types equal |
3e02674
to
924d9f6
Compare
Maybe we should allow merging bmr objects, even if the full cross product for tasks x learners is incomplete and simply add NA values to the missing task-learner combinations. |
Should we have a separate issue/PR for supporting NAs in BenchmarkResults? This is probably just testing that everything works as expected in the presence of NAs. |
* outsourced from PR #914: store task.desc instead only task.id * Update resample.R
Are there any other separate PRs required for this or can it go ahead now? |
No more separate PR here, I think we are not finished here but you can go ahead and give some general feedback for this PR. There will be several merge conflicts due to function renamings. |
@florianfendt what happend here? It seems that you did something wrong while rebasing, I see 204 files changed? In the worst case we have to open up a new PR and throw this away. |
@giuseppec |
1abed2e
to
88f5d8f
Compare
dbf638a
to
8f18670
Compare
Is this ready to be reviewed/merged now? |
@giuseppec |
I did some cleanup and extensions. @larskotthoff you could now review. |
#' @return \code{\link{BenchmarkResult}} | ||
#' @details Note that if you want to merge several \code{\link{BenchmarkResult}} | ||
#' objects you must ensure that all possible learner and task combinations will be | ||
#' contained in the return object.\cr |
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.
Not clear what this means. Do I have to postprocess the returned object to contain all learners and tasks?
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.
done.
|
||
# check for duplicated or missing task-learner combinations | ||
all.combos = expand.grid(task.id = task.ids, learner.id = learner.ids) | ||
all.combos = paste(all.combos$task.id, all.combos$learner.id, sep = " - ") |
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.
Use stringi functions for string operations.
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.
done.
existing.combos = rbindlist(lapply(bmrs, function(bmr) { | ||
getBMRAggrPerformances(bmr, as.df = TRUE)[, c("task.id", "learner.id")] | ||
})) | ||
existing.combos = paste(existing.combos$task.id, existing.combos$learner.id, sep = " - ") |
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.
stri_paste
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.
done.
Thanks for changing, merging. |
Not totally ready to merge yet.
We need to agree on how we want to treat the following situation:
All bmrs have been optimized on the same measure but for some bmrs additional measures were calculated.
Right now all the measures would need to be equal and we stop with an error otherwise.