speechtotext.plot.plotting.Plotting
- class Plotting(results, errors, report_name)[source]
Bases:
objectClass that is used to create plots for an benchmark.
Creates plotting object
- Parameters:
Methods
Launch webui to explore the data.
Loops over all customPlot classes in CUSTOM_PLOTS to creates and saves the plots.
Attributes
List of error classes that need to be saved.
List of error plot classes that need to be saved.
List of plot classes that need to be saved.
List of result classes that need to be saved.
List of dataset names that were used for the benchmarks.
-
CUSTOM_ERRORS:
list[BaseResult] = [] List of error classes that need to be saved.
This could be an pandas df, report text file, …
- Type:
-
CUSTOM_ERROR_PLOTS:
list[BaseResult] = [<class 'speechtotext.plot.customErrorPlots.ErrorCountByModel'>, <class 'speechtotext.plot.customErrorPlots.ErrorCountByModelByDataset'>, <class 'speechtotext.plot.customErrorPlots.ErrorCountHeatmap'>] List of error plot classes that need to be saved.
This could be an plotly, matplotlib or another plot.
- Type:
-
CUSTOM_PLOTS:
list[BaseResult] = [<class 'speechtotext.plot.customPlots.DynamicallyByModelNameForEachDataset'>, <class 'speechtotext.plot.customPlots.DynamicallyByModelNameByDataset'>, <class 'speechtotext.plot.customPlots.MetricHeatMap'>] List of plot classes that need to be saved.
This could be an plotly, matplotlib or another plot.
- Type:
-
CUSTOM_RESULTS:
list[BaseResult] = [<class 'speechtotext.metric.customMetrics.BenchmarkResults'>, <class 'speechtotext.metric.customMetrics.ResultMetrics'>] List of result classes that need to be saved.
This could be an pandas df, report text file, …
- Type: