
Plot Tuning Metrics from tune_dw_model()
Source: R/plot_tdw_tuning_metrics.R
plot_tdw_tuning_metrics.RdThis function creates a plot of the tuning metrics from a TuneDeweather
object created using tune_dw_model(). It visualises how different
hyperparameter values affect model performance (RMSE and RSQ). This allows
for the 'best' parameters to be refined through visual inspection. This plot
is likely most effective with between 1 and 3 simultaneously tuned
parameters; any more will impede plot interpretation.
Usage
plot_tdw_tuning_metrics(
tdw,
x = NULL,
group = NULL,
facet = NULL,
show_std_err = TRUE,
cols = "Set1"
)Arguments
- tdw
A deweather tuning object created with
tune_dw_model().- x
The tuned parameter to plot on the x-axis. If not selected, the first parameter in the
metricsdataset will be chosen.- group, facet
Additional tuned parameters other than
x, used to further control the plot.groupcolours the plot by another parameter, andfacetsplits the diagram into additional panels. Neithergroupnorfacetcan be the same parameter asx.- show_std_err
Show the standard error using error bars?
- cols
Colours to use for plotting. See
openair::openColours().
See also
Other Model Tuning Functions:
plot_tdw_testing_scatter(),
tune_dw_model()