| PscanPlotter | R Documentation |
This class facilitates interactive visual analysis of parameter scan results.
analyzedList, as output by analyze_parameter_scan().
paramsVector of names of scanned parameters.
metricsVector of names of model performance metrics to use.
n_paramsNumber of scanned parameters.
n_metricsNumber of performance metrics to apply.
resdata.frame holding parameter scan results. It contains
n_params + n_metrics + 1 columns: one column for each scanned
parameter, one for each employed metric and an additional column
(name n) to give each parameter combination (i.e. each row) an
identifying number.
n_combinationsNumber of rowns in res.
sortedList containing copies of res which are each sorted by
a different performance metric. List keys are the values in
self$metrics.
selectionVector of integers corresponding to the ID number of
combinations (column n in self$res) that is to be highlighted.
new()Construct and set up a PscanPlotter instance.
PscanPlotter$new(analyzed, variable = "dBM")
analyzedList; Output of analyze_parameter_scan().
variableStr; Name of variable in analyzed to visualize. Can
be changed later with set_variable(). Allowed values are the keys
in analyzed except for params and metrics.
set_variable()Choose which variable to visualize.
PscanPlotter$set_variable(variable)
variableChosen variable name. One of "dBM", "cBM", "cBM_end"
analyze()Enter analysis loop.
This plots the analysis results and enters a simple command-line interface through which more insights can be gathered. Particularly, it allows highlighting specific parameter combinations, either by their index number or by selecting the best performers according to a given metric.
PscanPlotter$analyze()
plot()Plot parameter scan results.
For every combination of scanned parameter and metric, a subplot is generated in which the parameter values are plotted against performance score in that metric for every parameter combination.
The result of this is static. Use PscanPlotter$analyze()
for an interactive version.
PscanPlotter$plot()
print_info()Print information on selected parameter combinations.
The parameter values and performance scores of all combinations referred to by the integers in selection are printed to console.
PscanPlotter$print_info(selection)
selectionVector of integers representing IDs of parameter
combinations (i.e. column n in self$res).
clone()The objects of this class are cloneable with this method.
PscanPlotter$clone(deep = FALSE)
deepWhether to make a deep clone.
plot_parameter_scan()
analyze_parameter_scan()
PscanPlotter$plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.