plot_olden {MLwrap} | R Documentation |
Plotting Olden Values Barplot
Description
The plot_olden() function generates specialized bar plots for visualizing Olden method results, which provide importance measures specific to neural networks based on connection weight analysis. This method offers insights into how input variables influence predictions through the network's synaptic connections.
Usage
plot_olden(analysis_object, show_table = FALSE)
Arguments
analysis_object |
Fitted analysis_object with 'sensitivity_analysis(methods = "Olden")'. |
show_table |
Boolean. Whether to print Olden results table. |
Value
analysis_object
Examples
# Note: For obtaining the Olden plot the user needs to complete till sensitivity_analysis( )
# function of the MLwrap pipeline using the Olden method.
if (requireNamespace("torch", quietly = TRUE)) {
wrap_object <- preprocessing(df = sim_data,
formula = psych_well ~ depression + emot_intel + resilience,
task = "regression")
wrap_object <- build_model(wrap_object, "Neural Network")
wrap_object <- fine_tuning(wrap_object, "Bayesian Optimization")
wrap_object <- sensitivity_analysis(wrap_object, methods = "Olden")
# And then, you can obtain the Olden plot.
plot_olden(wrap_object)
}
[Package MLwrap version 0.1.0 Index]