dcase_util.processors.OneHotLabelEncodingProcessor.process

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

Encode metadata

Parameters
dataMetaDataContainer

Meta data to encode. Give data in either through meta data container or directly with label parameter.

labelstr

Class label to be hot

focus_fieldstr

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

length_framesint

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

length_secondsfloat > 0.0

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

store_processing_chainbool

Store processing chain to data container returned Default value False

Returns
DataMatrix2DContainer