speechtotext.metric.customMetrics
Module to create custom metrics to save with the plots from the plotting module.
Use this module like this:
# Imports
from speechtotext.functions import BaseResult
from speechtotext.plot.plotting import Plotting
# Create class with matplotlib picture
class BenchmarkResults(BaseMetrics):
def create_df(self) -> pd.core.frame.DataFrame:
return self.df
# Add model to Plotting
Plotting.CUSTOM_RESULTS.append(BenchmarkResults)
Classes
Base class used to create metrics for result dataframe. |
|
This class saves the results of the benchmark. |
|
This class calulates the error statistic on the benchmark results. |
|
This class calulates the default statistic metrics on the benchmark results. |