dcase_util.processors.ManyHotEncodingProcessor.process

ManyHotEncodingProcessor.process(data=None, label_list=None, focus_field=None, length_frames=None, length_seconds=None, store_processing_chain=False, **kwargs)[source]

Encode metadata

Parameters
dataMetaDataContainer

Meta data to encode. Default value None

label_listlist of str

Class labels to be hot Default value None

focus_fieldstr

Field from the meta data item to be used in encoding. If None, one given as parameter for class constructor is used. Default value None

length_framesint

Length of encoded segment in frames. If None, one given as parameter for class constructor is used. Default value None

length_secondsfloat > 0.0

Length of encoded segment in seconds. If None, one given as parameter for class constructor is used. Default value None

store_processing_chainbool

Store processing chain to data container returned Default value False

Returns
BinaryMatrixContainer