View source: R/plotting_utils.R
plot_scatter_residuals | R Documentation |
The plot_scatter_residuals() function produces scatter plots relating residuals to predictions, facilitating identification of heteroscedasticity and non-linear patterns in model errors. This diagnostic plot is essential for validating regression model assumptions and detecting potential issues with model specification or data quality.
plot_scatter_residuals(analysis_object)
analysis_object |
Fitted analysis_object with 'fine_tuning()'. |
analysis_object
# Note: For obtaining the residuals vs. predicted values plot the user needs to
# complete till fine_tuning( ) function of the MLwrap pipeline.
wrap_object <- preprocessing(df = sim_data,
formula = psych_well ~ depression + emot_intel + resilience,
task = "regression")
wrap_object <- build_model(wrap_object, "Random Forest")
wrap_object <- fine_tuning(wrap_object, "Bayesian Optimization")
# And then, you can obtain the residuals vs predicted values plot.
plot_scatter_residuals(wrap_object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.