Skip to content

Commit

Permalink
fix: use dev version of tf and make test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Jan 2, 2025
1 parent 2b4e6b0 commit 6d391e1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ Imports:
mlr3misc (>= 0.14.0),
paradox,
R6,
tf (>= 0.3.4)
tf (>= 0.3.5)
Suggests:
rpart,
tsfeatures,
testthat (>= 3.0.0),
withr
Remotes:
tidyfun/tf
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Expand Down
15 changes: 15 additions & 0 deletions tests/testthat/_snaps/PipeOpFDASmooth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# PipeOpFDASmooth

Code
train_pipeop(po_smooth, list(task1))
Message
Using `f = 0.15` as smoother span for "lowess".
Output
$output
<TaskRegr:fuel> (129 x 2): Spectral Data of Fossil Fuels
* Target: heatan
* Properties: -
* Features (1):
- tfr (1): NIR

4 changes: 2 additions & 2 deletions tests/testthat/test_PipeOpFDASmooth.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ test_that("PipeOpFDASmooth", {
# verbose parameter is respected
po_smooth = po("fda.smooth")
po_smooth$param_set$set_values(verbose = TRUE)
expect_message(train_pipeop(po_smooth, list(task1)), "using")
expect_snapshot(train_pipeop(po_smooth, list(task1)))
po_smooth = po("fda.smooth")
po_smooth$param_set$set_values(verbose = FALSE)
expect_message(train_pipeop(po_smooth, list(task1)), NA)
expect_no_message(train_pipeop(po_smooth, list(task1)))
})

0 comments on commit 6d391e1

Please sign in to comment.