| PscanPlotter {growR} | R Documentation |
Plot Parameter Scan Results
Description
This class facilitates interactive visual analysis of parameter scan results.
Public fields
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 + 1columns: one column for each scanned parameter, one for each employed metric and an additional column (namen) to give each parameter combination (i.e. each row) an identifying number.n_combinationsNumber of rowns in
res.sortedList containing copies of
reswhich are each sorted by a different performance metric. List keys are the values inself$metrics.selectionVector of integers corresponding to the ID number of combinations (column
ninself$res) that is to be highlighted.
Methods
Public methods
Method new()
Construct and set up a PscanPlotter instance.
Usage
PscanPlotter$new(analyzed, variable = "dBM")
Arguments
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 forparamsandmetrics.
Method set_variable()
Choose which variable to visualize.
Usage
PscanPlotter$set_variable(variable)
Arguments
variableChosen variable name. One of "dBM", "cBM", "cBM_end"
Method 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.
Usage
PscanPlotter$analyze()
Method 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.
Usage
PscanPlotter$plot()
Method 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.
Usage
PscanPlotter$print_info(selection)
Arguments
selectionVector of integers representing IDs of parameter combinations (i.e. column
ninself$res).
Method clone()
The objects of this class are cloneable with this method.
Usage
PscanPlotter$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
PscanPlotter$plot()