Skip to content

Commit

Permalink
fix: make rsq regression measure (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc authored Sep 3, 2024
1 parent 5ffcfee commit d686b87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/MeasureRegrRSQ.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#' @template seealso_measure
#' @export
MeasureRegrRSQ = R6Class("MeasureRSQ",
inherit = Measure,
inherit = MeasureRegr,
public = list(
#' @description
#' Creates a new instance of this [R6][R6::R6Class] class.
Expand All @@ -40,10 +40,10 @@ MeasureRegrRSQ = R6Class("MeasureRSQ",

super$initialize(
id = "rsq",
task_type = "regr",
properties = if (!private$.pred_set_mean) c("requires_task", "requires_train_set") else character(0),
predict_type = "response",
minimize = FALSE,
range = c(-Inf, 1),
man = "mlr3::mlr_measures_regr.rsq"
)
}
Expand Down
6 changes: 3 additions & 3 deletions man/mlr_measures_regr.rsq.Rd

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

0 comments on commit d686b87

Please sign in to comment.