Skip to content

Commit 368f9ed

Browse files
Some test fixes (#2821)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5f4b952 commit 368f9ed

File tree

80 files changed

+3053
-243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3053
-243
lines changed

.pre-commit-config.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
# R specific hooks: https://github.com/lorenzwalthert/precommit
33
repos:
44
- repo: https://github.com/lorenzwalthert/precommit
5-
rev: v0.2.0
5+
rev: v0.2.2.9004
66
hooks:
77
- id: style-files
88
args: [--style_pkg=styler.mlr, --style_fun=mlr_style]
9+
additional_dependencies:
10+
- mlr-org/styler.mlr
911
- id: roxygenize
1012
- id: use-tidy-description
1113
# - id: spell-check

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ VignetteBuilder:
188188
ByteCompile: yes
189189
Config/testthat/edition: 3
190190
Config/testthat/parallel: true
191-
Config/testthat/start-first: base_generateHyperParsEffect,
191+
Config/testthat/start-first: featsel_plotFilterValues,base_plotResiduals,base_generateHyperParsEffect,
192192
classif_bartMachine, tune_tuneIrace, featsel_filters, learners_all*,
193193
regr_h2ogbm
194194
Encoding: UTF-8

R/generateHyperParsEffect.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ generateHyperParsEffectData = function(tune.result, include.diagnostics = FALSE,
8181
}
8282
for (hyp in 1:num.hypers) {
8383
if (!is.numeric(d[, hyp])) {
84-
d[, hyp] = type.convert(as.character(d[, hyp]))
84+
d[, hyp] = suppressWarnings(type.convert(as.character(d[, hyp])))
8585
}
8686
}
8787
# rename to be clear this denotes the nested cv

R/selectFeatures.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ selectFeatures = function(learner, task, resampling, measures,
108108
or = sel.func(learner, task, resampling, measures, bit.names,
109109
bits.to.features2, control, opt.path, show.info)
110110
if (show.info) {
111-
messagef("[FeatSel] Result: %s (%i bits)",
112-
clipString(collapse(or$x.bit.names), 30L), length(or$x.bit.names), perfsToString(or$y))
111+
suppressWarnings(messagef("[FeatSel] Result: %s (%i bits)",
112+
clipString(collapse(or$x.bit.names), 30L), length(or$x.bit.names), perfsToString(or$y)))
113113
}
114114
return(or)
115115
}

addon/convert_to_ascii_news.sh

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
# Part 5: Remove all level 1 headers
66

77
sed -e '/^##/ s/$/:/' -e 's/^*/ */' -e 's/^## *//' -e "/^#/a\\--------------------------------------------------------------------------------" -e 's/^# *//' < NEWS.md > NEWS
8-

inst/examples/MultilabelWrapper.R

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ performance(pred, measure = list(multilabel.hamloss, multilabel.subset01, multil
1212
# the next call basically has the same structure for any multilabel meta wrapper
1313
getMultilabelBinaryPerformances(pred, measures = list(mmce, auc))
1414
# above works also with predictions from resample!
15-

man-roxygen/arg_bmr_learnerids.R

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
#' Restrict result to certain learners.
33
#' Default is all.
44
#' @md
5-

man-roxygen/arg_bmr_taskids.R

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
#' Restrict result to certain tasks.
33
#' Default is all.
44
#' @md
5-

man-roxygen/arg_imputey.R

-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
#' For multi-criteria optimization pass a vector of imputation values, one for each of your measures,
1212
#' in the same order as your measures.
1313
#' @md
14-

man-roxygen/arg_taskdesc.R

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
#' @param task.desc [TaskDesc]\cr
22
#' Task description object.
3-

src/smote.c

-2
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,3 @@ SEXP c_smote(SEXP s_x, SEXP s_isnum, SEXP s_nn, SEXP s_res) {
3838
PutRNGstate();
3939
return s_res;
4040
}
41-
42-
Loading

0 commit comments

Comments
 (0)