From 3cd3516b4638a1b0804ccd9eb720ba89adb120aa Mon Sep 17 00:00:00 2001 From: nkoenen Date: Mon, 25 Nov 2024 09:21:50 +0100 Subject: [PATCH] fix CRAN note of wrong Rd cross-references --- R/innsight_ggplot2.R | 20 +++++++++++--------- R/innsight_sugar.R | 4 ++-- man-roxygen/field-dtype.R | 3 ++- man-roxygen/param-data-agnostic.R | 2 +- man-roxygen/param-data-optional.R | 2 +- man-roxygen/param-data.R | 2 +- man-roxygen/param-data_ref-agnostic.R | 4 ++-- man-roxygen/param-dtype.R | 4 ++-- man-roxygen/param-x_ref.R | 2 +- man/ConnectionWeights.Rd | 4 ++-- man/DeepLift.Rd | 8 ++++---- man/DeepSHAP.Rd | 6 +++--- man/ExpectedGradient.Rd | 6 +++--- man/Gradient.Rd | 6 +++--- man/GradientBased.Rd | 6 +++--- man/IntegratedGradient.Rd | 6 +++--- man/InterpretingMethod.Rd | 9 +++++---- man/LRP.Rd | 6 +++--- man/SmoothGrad.Rd | 6 +++--- man/innsight_ggplot2-class.Rd | 15 ++++++++------- man/innsight_ggplot2-plus.Rd | 5 +++-- man/innsight_sugar.Rd | 4 ++-- 22 files changed, 68 insertions(+), 62 deletions(-) diff --git a/R/innsight_ggplot2.R b/R/innsight_ggplot2.R index e690b0a..93b9e1c 100644 --- a/R/innsight_ggplot2.R +++ b/R/innsight_ggplot2.R @@ -4,8 +4,8 @@ NULL #' S4 class for ggplot2-based plots #' #' The S4 class `innsight_ggplot2` visualizes the results of the methods -#' provided from the package `innsight` using [ggplot2]. In addition, it -#' allows easier analysis of the results and modification of the +#' provided from the package `innsight` using [ggplot2][ggplot2::ggplot2]. In +#' addition, it allows easier analysis of the results and modification of the #' visualization by basic generic functions. The individual slots are for #' internal use only and should not be modified. #' @@ -23,11 +23,12 @@ NULL #' #' @details #' -#' This S4 class is a simple extension of a [ggplot2] object that enables -#' a more detailed analysis of the results and a way to visualize the results -#' of models with multiple input layers (e.g., images and tabular data). -#' The distinction between one and multiple input layers decides the behavior -#' of this class, and this information is stored in the slot `multiplot`. +#' This S4 class is a simple extension of a [ggplot2][ggplot2::ggplot2] object +#' that enables a more detailed analysis of the results and a way to visualize +#' the results of models with multiple input layers (e.g., images and tabular +#' data). The distinction between one and multiple input layers decides the +#' behavior of this class, and this information is stored in the slot +#' `multiplot`. #' #' ## One input layer (`multiplot = FALSE`) #' @@ -187,8 +188,9 @@ setMethod( #' Generic add function for `innsight_ggplot2` #' #' This generic add function allows to treat an instance of [`innsight_ggplot2`] -#' as an ordinary plot object of [`ggplot2`]. For example geoms, themes and -#' scales can be added as usual (see [`ggplot2::+.gg`] for more information).\cr \cr +#' as an ordinary plot object of [ggplot2][ggplot2::ggplot2]. For example geoms, +#' themes and scales can be added as usual (see [`ggplot2::+.gg`] for more +#' information).\cr \cr #' **Note:** If `e1` represents a multiplot (i.e., `e1@mulitplot = TRUE`), #' `e2` is added to each individual plot. If only specific plots need to be #' changed, the generic assignment function should be used (see diff --git a/R/innsight_sugar.R b/R/innsight_sugar.R index 783349f..ffd34ef 100644 --- a/R/innsight_sugar.R +++ b/R/innsight_sugar.R @@ -23,7 +23,7 @@ #' @template param-converter #' @template param-data_ref-agnostic #' -#' @param model ([`nn_sequential`], \code{\link[keras]{keras_model}}, +#' @param model (\code{\link[torch]{nn_sequential}}, \code{\link[keras]{keras_model}}, #' \code{\link[neuralnet]{neuralnet}} or `list`)\cr #' A trained neural network for classification or regression #' tasks to be interpreted. Only models from the following types or @@ -40,7 +40,7 @@ #' \code{\link[neuralnet]{neuralnet}} or [`Converter`], #' these have already been pre-implemented and do not need to be #' specified.\cr -#' @param data ([`array`], [`data.frame`], [`torch_tensor`] or `list`)\cr +#' @param data ([`array`], [`data.frame`], \code{\link[torch]{torch_tensor}} or `list`)\cr #' The data to which the method is to be applied. These must #' have the same format as the input data of the passed model to the #' converter object. This means either diff --git a/man-roxygen/field-dtype.R b/man-roxygen/field-dtype.R index 13f2e98..2b7cb36 100644 --- a/man-roxygen/field-dtype.R +++ b/man-roxygen/field-dtype.R @@ -1,3 +1,4 @@ #' @field dtype (`character(1)`)\cr #' The data type for the calculations. Either `'float'` for -#' [torch_float] or `'double'` for [torch_double].\cr +#' \code{\link[torch]{torch_float}} or `'double'` for +#' \code{\link[torch]{torch_double}}.\cr diff --git a/man-roxygen/param-data-agnostic.R b/man-roxygen/param-data-agnostic.R index e050e2e..36acf8b 100644 --- a/man-roxygen/param-data-agnostic.R +++ b/man-roxygen/param-data-agnostic.R @@ -2,7 +2,7 @@ #' The individual instances to be explained by the method. #' These must have the same format as the input data of the passed model #' and has to be either [`matrix`], an [`array`], a [`data.frame`] or a -#' [`torch_tensor`]. If no value is specified, all instances in the +#' \code{\link[torch]{torch_tensor}}. If no value is specified, all instances in the #' dataset `data` will be explained.\cr #' **Note:** For the model-agnostic methods, only models with a single #' input and output layer is allowed!\cr diff --git a/man-roxygen/param-data-optional.R b/man-roxygen/param-data-optional.R index 4009cbf..60ea929 100644 --- a/man-roxygen/param-data-optional.R +++ b/man-roxygen/param-data-optional.R @@ -1,4 +1,4 @@ -#' @param data ([`array`], [`data.frame`], [`torch_tensor`] or `list`)\cr +#' @param data ([`array`], [`data.frame`], \code{\link[torch]{torch_tensor}} or `list`)\cr #' The data to which the method is to be applied. These must #' have the same format as the input data of the passed model to the #' converter object. This means either diff --git a/man-roxygen/param-data.R b/man-roxygen/param-data.R index 3e4467c..65bd9ef 100644 --- a/man-roxygen/param-data.R +++ b/man-roxygen/param-data.R @@ -1,4 +1,4 @@ -#' @param data ([`array`], [`data.frame`], [`torch_tensor`] or `list`)\cr +#' @param data ([`array`], [`data.frame`], \code{\link[torch]{torch_tensor}} or `list`)\cr #' The data to which the method is to be applied. These must #' have the same format as the input data of the passed model to the #' converter object. This means either diff --git a/man-roxygen/param-data_ref-agnostic.R b/man-roxygen/param-data_ref-agnostic.R index d8917cb..15734fc 100644 --- a/man-roxygen/param-data_ref-agnostic.R +++ b/man-roxygen/param-data_ref-agnostic.R @@ -1,7 +1,7 @@ -#' @param data_ref ([`array`], [`data.frame`] or [`torch_tensor`])\cr +#' @param data_ref ([`array`], [`data.frame`] or \code{\link[torch]{torch_tensor}})\cr #' The dataset to which the method is to be applied. These must #' have the same format as the input data of the passed model and has to #' be either [`matrix`], an [`array`], a [`data.frame`] or a -#' [`torch_tensor`].\cr +#' \code{\link[torch]{torch_tensor}}.\cr #' **Note:** For the model-agnostic methods, only models with a single #' input and output layer is allowed!\cr diff --git a/man-roxygen/param-dtype.R b/man-roxygen/param-dtype.R index 8e65df9..7b2684b 100644 --- a/man-roxygen/param-dtype.R +++ b/man-roxygen/param-dtype.R @@ -1,4 +1,4 @@ #' @param dtype (`character(1)`)\cr #' The data type for the calculations. Use -#' either `'float'` for [torch_float] or `'double'` for -#' [torch_double].\cr +#' either `'float'` for \code{\link[torch]{torch_float}} or `'double'` for +#' \code{\link[torch]{torch_double}}.\cr diff --git a/man-roxygen/param-x_ref.R b/man-roxygen/param-x_ref.R index e54fe10..7c73c95 100644 --- a/man-roxygen/param-x_ref.R +++ b/man-roxygen/param-x_ref.R @@ -1,4 +1,4 @@ -#' @param x_ref ([`array`], [`data.frame`], [`torch_tensor`] or `list`)\cr +#' @param x_ref ([`array`], [`data.frame`], \code{\link[torch]{torch_tensor}} or `list`)\cr #' The reference input for the DeepLift method. This value #' must have the same format as the input data of the passed model to the #' converter object. This means either diff --git a/man/ConnectionWeights.Rd b/man/ConnectionWeights.Rd index b6c1b44..834c6c4 100644 --- a/man/ConnectionWeights.Rd +++ b/man/ConnectionWeights.Rd @@ -301,8 +301,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/DeepLift.Rd b/man/DeepLift.Rd index dc17012..b096dbf 100644 --- a/man/DeepLift.Rd +++ b/man/DeepLift.Rd @@ -220,7 +220,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -300,7 +300,7 @@ often omitted.\cr} Name of the applied rule to calculate the contributions. Use either \code{'rescale'} or \code{'reveal_cancel'}. \cr} -\item{\code{x_ref}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{x_ref}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The reference input for the DeepLift method. This value must have the same format as the input data of the passed model to the converter object. This means either @@ -330,8 +330,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/DeepSHAP.Rd b/man/DeepSHAP.Rd index 3be1342..c3273b1 100644 --- a/man/DeepSHAP.Rd +++ b/man/DeepSHAP.Rd @@ -220,7 +220,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -335,8 +335,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/ExpectedGradient.Rd b/man/ExpectedGradient.Rd index b8c044b..ec06011 100644 --- a/man/ExpectedGradient.Rd +++ b/man/ExpectedGradient.Rd @@ -219,7 +219,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -320,8 +320,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/Gradient.Rd b/man/Gradient.Rd index 2609dda..5e8fbab 100644 --- a/man/Gradient.Rd +++ b/man/Gradient.Rd @@ -202,7 +202,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -289,8 +289,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/GradientBased.Rd b/man/GradientBased.Rd index 9ba4494..995e640 100644 --- a/man/GradientBased.Rd +++ b/man/GradientBased.Rd @@ -73,7 +73,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -160,8 +160,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/IntegratedGradient.Rd b/man/IntegratedGradient.Rd index bd0712e..0c7f2c8 100644 --- a/man/IntegratedGradient.Rd +++ b/man/IntegratedGradient.Rd @@ -223,7 +223,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -330,8 +330,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/InterpretingMethod.Rd b/man/InterpretingMethod.Rd index 068698a..86faeaf 100644 --- a/man/InterpretingMethod.Rd +++ b/man/InterpretingMethod.Rd @@ -53,7 +53,8 @@ is calculated.\cr} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Either \code{'float'} for -\link{torch_float} or \code{'double'} for \link{torch_double}.\cr} +\code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} \item{\code{ignore_last_act}}{(\code{logical(1)})\cr A logical value to include the last activation @@ -167,7 +168,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -261,8 +262,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/LRP.Rd b/man/LRP.Rd index 78ff91d..f7f9093 100644 --- a/man/LRP.Rd +++ b/man/LRP.Rd @@ -245,7 +245,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -367,8 +367,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/SmoothGrad.Rd b/man/SmoothGrad.Rd index 782fb64..8ca6d48 100644 --- a/man/SmoothGrad.Rd +++ b/man/SmoothGrad.Rd @@ -212,7 +212,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{\code{data}}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either @@ -306,8 +306,8 @@ the output of the primitive R function \code{\link[=interactive]{interactive()}} \item{\code{dtype}}{(\code{character(1)})\cr The data type for the calculations. Use -either \code{'float'} for \link{torch_float} or \code{'double'} for -\link{torch_double}.\cr} +either \code{'float'} for \code{\link[torch]{torch_float}} or \code{'double'} for +\code{\link[torch]{torch_double}}.\cr} } \if{html}{\out{}} } diff --git a/man/innsight_ggplot2-class.Rd b/man/innsight_ggplot2-class.Rd index 8a02a3d..335de8d 100644 --- a/man/innsight_ggplot2-class.Rd +++ b/man/innsight_ggplot2-class.Rd @@ -6,17 +6,18 @@ \title{S4 class for ggplot2-based plots} \description{ The S4 class \code{innsight_ggplot2} visualizes the results of the methods -provided from the package \code{innsight} using \link{ggplot2}. In addition, it -allows easier analysis of the results and modification of the +provided from the package \code{innsight} using \link[ggplot2:ggplot2-package]{ggplot2}. In +addition, it allows easier analysis of the results and modification of the visualization by basic generic functions. The individual slots are for internal use only and should not be modified. } \details{ -This S4 class is a simple extension of a \link{ggplot2} object that enables -a more detailed analysis of the results and a way to visualize the results -of models with multiple input layers (e.g., images and tabular data). -The distinction between one and multiple input layers decides the behavior -of this class, and this information is stored in the slot \code{multiplot}. +This S4 class is a simple extension of a \link[ggplot2:ggplot2-package]{ggplot2} object +that enables a more detailed analysis of the results and a way to visualize +the results of models with multiple input layers (e.g., images and tabular +data). The distinction between one and multiple input layers decides the +behavior of this class, and this information is stored in the slot +\code{multiplot}. \subsection{One input layer (\code{multiplot = FALSE})}{ If the model passed to a method from the innsight package has only one diff --git a/man/innsight_ggplot2-plus.Rd b/man/innsight_ggplot2-plus.Rd index bf2692c..a3379a9 100644 --- a/man/innsight_ggplot2-plus.Rd +++ b/man/innsight_ggplot2-plus.Rd @@ -14,8 +14,9 @@ } \description{ This generic add function allows to treat an instance of \code{\link{innsight_ggplot2}} -as an ordinary plot object of \code{\link{ggplot2}}. For example geoms, themes and -scales can be added as usual (see \code{\link[ggplot2:gg-add]{ggplot2::+.gg}} for more information).\cr \cr +as an ordinary plot object of \link[ggplot2:ggplot2-package]{ggplot2}. For example geoms, +themes and scales can be added as usual (see \code{\link[ggplot2:gg-add]{ggplot2::+.gg}} for more +information).\cr \cr \strong{Note:} If \code{e1} represents a multiplot (i.e., \code{e1@mulitplot = TRUE}), \code{e2} is added to each individual plot. If only specific plots need to be changed, the generic assignment function should be used (see diff --git a/man/innsight_sugar.Rd b/man/innsight_sugar.Rd index 942adce..8d3bff1 100644 --- a/man/innsight_sugar.Rd +++ b/man/innsight_sugar.Rd @@ -49,7 +49,7 @@ run_lime(model, data, data_ref, ...) run_shap(model, data, data_ref, ...) } \arguments{ -\item{model}{(\code{\link{nn_sequential}}, \code{\link[keras]{keras_model}}, +\item{model}{(\code{\link[torch]{nn_sequential}}, \code{\link[keras]{keras_model}}, \code{\link[neuralnet]{neuralnet}} or \code{list})\cr A trained neural network for classification or regression tasks to be interpreted. Only models from the following types or @@ -75,7 +75,7 @@ An instance of the \code{Converter} class that includes the torch-converted model and some other model-specific attributes. See \code{\link{Converter}} for details.\cr} -\item{data}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link{torch_tensor}} or \code{list})\cr +\item{data}{(\code{\link{array}}, \code{\link{data.frame}}, \code{\link[torch]{torch_tensor}} or \code{list})\cr The data to which the method is to be applied. These must have the same format as the input data of the passed model to the converter object. This means either