Neural networks are important tools for data-intensive analysis and are commonly applied to model non-linear relationships between dependent and independent variables. However, neural networks are usually seen as "black boxes" that offer minimal information about how the input variables are used to predict the response in a fitted model. This article describes the \pkg{NeuralSens} package that can be used to perform sensitivity analysis of neural networks using the partial derivatives method. Functions in the package can be used to obtain the sensitivities of the output with respect to the input variables, evaluate variable importance based on sensitivity measures and characterize relationships between input and output variables. Methods to calculate sensitivities are provided for objects from common neural network packages in \proglang{R}, including \pkg{neuralnet}, \pkg{nnet}, \pkg{RSNNS}, \pkg{h2o}, \pkg{neural}, \pkg{forecast} and \pkg{caret}. The article presents an overview of the techniques for obtaining information from neural network models, a theoretical foundation of how are calculated the partial derivatives of the output with respect to the inputs of a multi-layer perceptron model, a description of the package structure and functions, and applied examples to compare \pkg{NeuralSens} functions with analogous functions from other available \proglang{R} packages.
翻译:神经网络是数据密集分析的重要工具{神经网络,通常用于模拟非线性的关系。然而,神经网络通常被视为“黑盒子”,提供最起码的信息,说明如何使用输入变量来预测适合模型中的反应。本文章描述了可用于使用部分衍生物方法对神经网络进行敏感分析的\pkk{NeuralSens}包件。包中的功能可用于获取投入变量产出的敏感性,根据敏感性措施评估变量的重要性并描述投入和产出变量之间的关系。对于在\ proglang{R} 中常见神经网络包中的物体,提供了计算敏感性的方法,包括\ pkkg{ nuralnet},\pkkk{nent},\pkg{h2o},\pkkkk{h{nuror},\pkkkk{nor{nor},\kkg{formax} 。文章概述了从神经网络模型模型中获取信息的技术,以及输入到输入和输入输出输出工具的工具。