Skip to content

Commit

Permalink
add small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
lona-k committed Nov 24, 2024
1 parent a2d762b commit 5126f77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/Measure.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Measure = R6Class("Measure",
cli_li(sprintf("Minimize: %s", self$minimize))
cli_li(sprintf("Average: %s", self$average))
cli_li(sprintf("Parameters: %s", paste(as_short_string(self$param_set$values, 1000L), collapse = ", ")))
cli_li(sprintf("Properties: %s", paste(self$properties, collapse = ", ")))
cli_li(sprintf("Properties: %s", if (length(self$properties)) paste(self$properties, collapse = ", ") else "-"))
cli_li(sprintf("Predict type: %s", self$predict_type))
cli_li(sprintf("Predict sets: %s", paste(self$predict_sets, collapse = ", ")))
},
Expand Down
2 changes: 2 additions & 0 deletions R/Task.R
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ Task = R6Class("Task",
cli_li(sprintf("Target classes: %s", classes))
}

cli_li(sprintf("Properties: %s", if (length(self$properties)) paste(self$properties, collapse = ", ") else "-"))

types = self$feature_types
if (nrow(types)) {
id = type = NULL
Expand Down

0 comments on commit 5126f77

Please sign in to comment.