Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Jan 29, 2025
1 parent 4f690a7 commit f706e6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/assertions.R
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ assert_task_learner = function(task, learner, param_values = NULL, cols = NULL)
}

#' @export
#' @param param_values (`list()`)\cr
#' TuneToken are not allowed in the parameter set of the learner.
#' If the `param_values` overwrites the TuneToken, the assertion will pass.
#' @rdname mlr_assertions
assert_learnable = function(task, learner, param_values = NULL) {
if (task$task_type == "unsupervised") {
Expand Down
4 changes: 4 additions & 0 deletions man/mlr_assertions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f706e6c

Please sign in to comment.