Skip to content

Commit 267de89

Browse files
committed
Merge branch 'main' into poisson-linear-reg
2 parents d6f2e26 + 8adb5cc commit 267de89

File tree

11 files changed

+10
-341
lines changed

11 files changed

+10
-341
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Imports:
2525
ggplot2,
2626
globals,
2727
glue,
28-
hardhat (>= 1.4.0.9002),
28+
hardhat (>= 1.4.0.9003),
2929
lifecycle,
3030
magrittr,
3131
pillar,

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ importFrom(generics,tune_args)
377377
importFrom(generics,varying_args)
378378
importFrom(ggplot2,autoplot)
379379
importFrom(glue,glue_collapse)
380+
importFrom(hardhat,contr_one_hot)
380381
importFrom(hardhat,extract_fit_engine)
381382
importFrom(hardhat,extract_fit_time)
382383
importFrom(hardhat,extract_parameter_dials)

R/contr_one_hot.R

Lines changed: 0 additions & 52 deletions
This file was deleted.

R/mlp.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ keras_mlp <-
192192
seeds = sample.int(10^5, size = 3),
193193
...) {
194194

195-
act_funs <- c("linear", "softmax", "relu", "elu")
196-
rlang::arg_match(activation, act_funs,)
195+
act_funs <- c("linear", "softmax", "relu", "elu", "tanh")
196+
rlang::arg_match(activation, act_funs)
197197

198198
if (penalty > 0 & dropout > 0) {
199199
cli::cli_abort("Please use either dropout or weight decay.", call = NULL)

R/reexports.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ generics::augment
3030
#' @export
3131
generics::required_pkgs
3232

33+
#' @importFrom hardhat contr_one_hot
34+
#' @export
35+
hardhat::contr_one_hot
36+
3337
#' @importFrom hardhat extract_spec_parsnip
3438
#' @export
3539
hardhat::extract_spec_parsnip

man/contr_one_hot.Rd

Lines changed: 0 additions & 93 deletions
This file was deleted.

man/reexports.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rmd/one-hot.Rmd

Lines changed: 0 additions & 47 deletions
This file was deleted.

man/rmd/one-hot.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

tests/testthat/_snaps/contr_one_hot.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)