Skip to content

Constants#

audioclass.constants #

Module containing constants for the audioclass package.

Attributes#

BATCH_SIZE: int = 4 module-attribute #

Default size of batch for model inference.

This value determines the number of audio clips that are processed together in a single batch.

DATA_DIR: Path = ROOT_DIR / 'data' module-attribute #

Directory containing supporting data files.

This is the directory where any additional data files required by the audioclass package are stored.

DEFAULT_THRESHOLD: float = 0.1 module-attribute #

Default confidence threshold for model predictions.

This value is used as the minimum probability for a prediction to be considered valid.

ROOT_DIR: Path = Path(__file__).parent module-attribute #

Root directory of the module.

This is the directory where the audioclass module is located.