DataIO

bt4vt.dataio.copy_example(dest_path, example_name='voxceleb')[source]

Copy the example to a specified directory

Parameters:
  • dest_path (str) – Path to the directory where you’d like to copy the example files to

  • example_name – Name of the example that should be copied (default is VoxCeleb)

bt4vt.dataio.load_config(file_name)[source]

Read a yaml config file into a dictionary.

Parameters:

file_name (str) – path to the yaml config file

Returns:

config

Return type:

dict

bt4vt.dataio.load_data(data_in)[source]

Read a csv, txt file or a DataFrame into a DataFrame. If given a file it uses the Python parsing engine to automatically detect the separator.

Parameters:

data_in (str or DataFrame) – Either path to csv or txt file or a Pandas DataFrame

Returns:

data

Return type:

DataFrame