pumpp.feature.FeatureExtractor¶
-
class
pumpp.feature.
FeatureExtractor
(name, sr, hop_length, conv=None)[source]¶ The base feature extractor class.
Attributes
name (str) The name for this feature extractor sr (number > 0) The sampling rate of audio for analysis hop_length (int > 0) The hop length between analysis frames conv ({‘tf’, ‘th’, ‘channels_last’, ‘channels_first’, None}) convolution dimension ordering: - ‘channels_last’ for tensorflow-style 2D convolution - ‘tf’ equivalent to ‘channels_last’ - ‘channels_first’ for theano-style 2D convolution - ‘th’ equivalent to ‘channels_first’ - None for 1D or non-convolutional representations Methods
__init__
(name, sr, hop_length[, conv])layers
()Construct Keras input layers for the given transformer merge
(data)Merge an array of output dictionaries into a single dictionary with properly scoped names. phase_diff
(phase)Compute the phase differential along a given axis pop
(field)register
(key, dimension, dtype)scope
(key)Apply the name scope to a key transform
(y, sr)Transform an audio signal transform_audio
(y)Attributes
idx