ResidualPlot#
- class gaitmap_challenges.visualization.ResidualPlot(cv_result: DataFrame, prediction_col_name: str, reference_col_name: str, metric_name: Optional[str] = None)[source]#
Plot a residual (similar to Blant-Altman) plot to visualize the error dependency.
Most parameters are shared between both plotting backends. Specific parameters are prefixed with
bokeh_ormatplotlib_or are expected to be passed to the method directly.To use this visualization, you need to make the “raw” predictions available in the cv_result. This is usually done by including the with the
NoAggwrapper in the scorer output.- Parameters:
- cv_result
The CV results of a single algorithm as loaded by
load_run.- prediction_col_namestr
The name of the column in the cv_results that contains the predictions.
- reference_col_namestr
The name of the column in the cv_results that contains the reference values.
- metric_namestr, optional
An optional display name for the used metric. If not provided, the column name is used.
- Attributes:
- metric_name
Methods
bokeh()Create the plot using bokeh.
matplotlib([ax])Create the plot using matplotlib.
- __init__(cv_result: DataFrame, prediction_col_name: str, reference_col_name: str, metric_name: Optional[str] = None) None[source]#