Application core¶
An application core is a utility class to handle all “business logic” for application.
It handles communication between dcase_framework.datasets.Dataset()
,
dcase_framework.features.FeatureExtractor()
,
dcase_framework.features.FeatureNormalizer()
, and
dcase_framework.learners.LearnerContainer()
classes.
Usage examples:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | params = ParameterContainer(filename='parameters.yaml').load().process()
app = AcousticSceneClassificationAppCore(name='Test system',
params=params,
setup_label='Development setup'
)
# Show all datasets available
app.show_dataset_list()
# Show parameters
app.show_parameters()
# Initialize application
app.initialize()
# Extract features
app.feature_extraction()
# Normalize features
app.feature_normalization()
# Train system
app.system_training()
# Test system
app.system_testing()
# Evaluate system
app.system_evaluation()
|
AcousticSceneClassificationAppCore¶
Application core for acoustic scene classification applications.
AcousticSceneClassificationAppCore (\*args, ...) |
Constructor |
AcousticSceneClassificationAppCore.show_dataset_list () |
List of datasets available |
AcousticSceneClassificationAppCore.show_parameters () |
Show parameters |
AcousticSceneClassificationAppCore.initialize (...) |
Initialize application |
AcousticSceneClassificationAppCore.feature_extraction (...) |
Feature extraction stage |
AcousticSceneClassificationAppCore.feature_normalization (...) |
Feature normalization stage |
AcousticSceneClassificationAppCore.system_training (...) |
System training stage |
AcousticSceneClassificationAppCore.system_testing (...) |
System testing stage |
AcousticSceneClassificationAppCore.system_evaluation (...) |
System evaluation stage. |
SoundEventAppCore¶
Application core for sound event detection applications.
SoundEventAppCore (\*args, \*\*kwargs) |
Constructor |
SoundEventAppCore.show_dataset_list () |
List of datasets available |
SoundEventAppCore.show_parameters () |
Show parameters |
SoundEventAppCore.initialize (\*args, \*\*kwargs) |
Initialize application |
SoundEventAppCore.feature_extraction (\*args, ...) |
Feature extraction stage |
SoundEventAppCore.feature_normalization (...) |
Feature normalization stage |
SoundEventAppCore.system_training (\*args, ...) |
System training stage |
SoundEventAppCore.system_testing (\*args, \*\*kwargs) |
System testing stage |
SoundEventAppCore.system_evaluation (\*args, ...) |
System evaluation stage. |
BinarySoundEventAppCore¶
Application core for binary sound event detection applications.
BinarySoundEventAppCore (\*args, \*\*kwargs) |
Constructor |
BinarySoundEventAppCore.show_dataset_list () |
List of datasets available |
BinarySoundEventAppCore.show_parameters () |
Show parameters |
BinarySoundEventAppCore.initialize (\*args, ...) |
Initialize application |
BinarySoundEventAppCore.feature_extraction (...) |
Feature extraction stage |
BinarySoundEventAppCore.feature_normalization (...) |
Feature normalization stage |
BinarySoundEventAppCore.system_training (...) |
System training stage |
BinarySoundEventAppCore.system_testing (...) |
System testing stage |
BinarySoundEventAppCore.system_evaluation (...) |
System evaluation stage. |
AppCore – base class¶
Base class for all application cores.
AppCore (\*args, \*\*kwargs) |
Constructor |
AppCore.show_dataset_list () |
List of datasets available |
AppCore.show_parameters () |
Show parameters |
AppCore.initialize (\*args, \*\*kwargs) |
Initialize application |
AppCore.feature_extraction (\*args, \*\*kwargs) |
Feature extraction stage |
AppCore.feature_normalization (\*args, \*\*kwargs) |
Feature normalization stage |
AppCore.system_training (\*args, \*\*kwargs) |
System training stage |
AppCore.system_testing ([overwrite]) |
System testing stage |
AppCore.system_evaluation (\*args, \*\*kwargs) |
System evaluation stage. |