Skip to content

Commit

Permalink
fix reflections + docs (fixes #164)
Browse files Browse the repository at this point in the history
  • Loading branch information
mllg committed Sep 3, 2019
1 parent ce24cd1 commit c7a7741
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Expand Up @@ -61,7 +61,6 @@ Collate:
'TerminatorModelTime.R'
'TerminatorNone.R'
'TerminatorPerfReached.R'
'mlr_reflections.R'
'mlr_tuners.R'
'Tuner.R'
'TunerGenSA.R'
Expand Down
1 change: 0 additions & 1 deletion R/Tuner.R
Expand Up @@ -3,7 +3,6 @@
#' @usage NULL
#' @format [R6::R6Class] object.
#' @include mlr_tuners.R
#' @include mlr_reflections.R
#'
#' @description
#' Abstract `Tuner` class that implements the main functionality each tuner must have.
Expand Down
4 changes: 2 additions & 2 deletions R/TuningInstance.R
Expand Up @@ -55,10 +55,10 @@
#' This function should be internally called by the tuner.
#'
#' * `tuner_objective(x)`\cr
#' [numeric(n)] -> [numeric(1)]\cr
#' `numeric()` -> `numeric(1)`\cr
#' Evaluates a simple numeric vector of hyperparameter settings, and returns a scalar objective value,
#' where the return value is negated if the measure is maximized.
#' Internally, `eval_batch` is called with a single row.
#' Internally, `$eval_batch()` is called with a single row.
#' This function serves as a objective function for tuners of numeric spaces - which should always be minimized.
#'
#' * `best(measure = NULL, ties_method = "random")`\cr
Expand Down
6 changes: 0 additions & 6 deletions R/mlr_reflections.R

This file was deleted.

3 changes: 3 additions & 0 deletions R/zzz.R
Expand Up @@ -9,6 +9,9 @@

.onLoad = function(libname, pkgname) {
# nocov start
x = utils::getFromNamespace("mlr_reflections", ns = "mlr3")
x$tuner_properties = "dependencies"

assign("lg", lgr::get_logger("mlr3"), envir = parent.env(environment()))
if (Sys.getenv("IN_PKGDOWN") == "true") {
lg$set_threshold("warn")
Expand Down
4 changes: 2 additions & 2 deletions man/TuningInstance.Rd

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

0 comments on commit c7a7741

Please sign in to comment.