Skip to content

Commit

Permalink
fix: uhash
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Nov 30, 2023
1 parent 82e2fbe commit 0dfd5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ResultData.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ ResultData = R6Class("ResultData",
} else {
fact = data[, c("uhash", "iteration", "learner_state", "prediction", "task", "learner", "resampling", "param_values", "learner_hash"),
with = FALSE]
uhashes = data.table(uhash = unique(fact$uhash))
setkeyv(fact, c("uhash", "iteration"))

fact[, task_hash := task[[1]]$hash, by = "uhash"]
fact[, learner_phash := learner[[1]]$phash, by = "uhash"]
fact[, resampling_hash := resampling[[1]]$hash, by = "uhash"]

uhashes = data.table(uhash = unique(fact$uhash))
tasks = fact[, list(task = .SD$task[1L]),
keyby = "task_hash"]
learners = fact[, list(learner = list(.SD$learner[[1L]]$reset())),
Expand Down

0 comments on commit 0dfd5d0

Please sign in to comment.