speechtotext.benchmark.customBenchmarks.AzureAPIBenchmark
- class AzureAPIBenchmark(with_cleaning=True)[source]
Bases:
BenchmarkBenchmark for Azure API.
Create benchmark object.
- Parameters:
with_cleaning (bool, optional) – Clean. Defaults to True.
Methods
Convert metrics to dataframe.
Creates an list of ModelWrappers.
Save outputs of benchmark to csv.
Set dataset for Benchmark class.
Update the sample dataset.
Attributes
Dataset samples.
Original dataset.
List of errors.
Name of base model.
- __call__(number_of_samples, with_cleaning=True)
Benchmark n samples.benchmark_results_to_csv
- convert_to_pandas()
Convert metrics to dataframe.
- Returns:
Pandas dataframe.
- Return type:
pd.core.frame.DataFrame
- create_models()[source]
Creates an list of ModelWrappers.
- Returns:
List of model wrappers.
- Return type:
- save_to_csv(save_name)
Save outputs of benchmark to csv.
- Parameters:
save_name (str) – Filename of output.