Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion R/mask-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,13 @@ entmax_15_function <- torch::autograd_function(
#' @return The projection result P of the same shape as input, such that
#' \eqn{\sum_{dim} P = 1 \forall dim} elementwise.
#'
#' @examples
#' @examplesIf torch::torch_is_installed()
#' \dontrun{
#' input <- torch::torch_randn(10,5, requires_grad = TRUE)
#' # create a top3 alpha=1.5 entmax on last input dimension
#' nn_entmax <- entmax15(dim=-1L, k = 3)
#' result <- nn_entmax(input)
#' }
#' @export
entmax15 <- torch::nn_module(
"entmax_15",
Expand Down
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

* This is a new release.

Note 1 : Package new submission after fixing the issues that led to archiving on 2025-04-01.
Misspelled words in description are names and have been added to package `inst/WORDLIST`
Note 2 : Example duration is inherent to fitting a model with the underlying torch framework.
Note 1 : Example duration is inherent to fitting a model with the underlying torch framework.
4 changes: 4 additions & 0 deletions man/entmax15.Rd

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

13 changes: 8 additions & 5 deletions vignettes/aum_loss.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ format:
fig-width: 9
fig-height: 6
fig-cap-location: "top"
knitr:
opts_chunk:
collapse: true
comment: "#>"
eval: true
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
eval = torch::torch_is_installed()
)
```

```{r setup}
library(tabnet)
suppressPackageStartupMessages(library(tidymodels))
Expand Down
Loading