In-depth explanation1 years ago
Step 1: The Converter | Argument model | Package torch | Package keras | Package neuralnet | Model as named list | Adding layers to your list-model | Argument input_dim | Argument input_names | Argument output_names | Other arguments | Argument dtype | Argument save_model_as_list | Fields | Step 2: Apply selected method | Arguments | Argument converter | Argument data | Argument channels_first | Argument output_idx | Argument output_label | Argument ignore_last_act | Argument dtype | Methods | Vanilla Gradient | SmoothGrad | Gradient$\times$Input and SmoothGrad$\times$Input | Layer-wise Relevance Propagation (LRP) | Deep Learning Important Features (DeepLift) | Apply method DeepLift with rescale rule | Get result | Integrated Gradients | Apply method IntegratedGradient | Crate model with package 'neuralnet' | Step 1: Create 'Converter' | Step 2: Apply Expected Gradient | Verify exact decomposition | Show the error between both | Show the result | Step 3: Show and plot the results | Get results | Array (type = 'array') | Show the result for datapoint 1 and 10 | Torch Tensor (type = 'torch_tensor') | Data.Frame (type = 'data.frame') | get the result from the tabular model | calculate mean absolute gradient | Plot summarized results plot_global() | Advanced plotting | Create model with tabular data as inputs and one output layer | Create model with images as inputs and two output layers | Create model with images and tabular data as inputs and two | output layers | Now we can add geoms, themes and scales as usual for ggplot2 objects | This object is still an 'innsight_ggplot2' object... | ... but all ggplot2 geoms, themes and scales are added | If the respective plot allows it, you can also use the already existing | mapping function and data: | Show the whole plot | Now you can select a single plot by passing the row and column index, | e.g. the plot for output "Y1" and data point 3 | This time a ggplot2 object is returned | Show the new plot | Results for multiple input and/or output layers | Select a restyled subplot (default) | The same plot as shown in the whole plot | Remove colorbar in the plot for data point 3 and output 'Y1' in output | layer 1 (in such situations the restyle argument is useful) | Change colorscale in the plot for data point 1 and output 'Y2' in output | layer 2 | Change the theme in all plots for data point 3 | Show the result with all changes | e.g. the plot for output "Y1", data point 3 and the second input layer | It's a plotly object | Show the plot | All methods behave the same and return a plotly object | You can also pass additional arguments to the method 'plotly::subplot', | e.g. the margins
innsight 0.3.2.9000Niklas Koenen detailed_overview.Rmd