pumpp.task.VectorTransformer

class pumpp.task.VectorTransformer(name, namespace, dimension, dtype=<Mock name='mock.float32' id='139764186935024'>)[source]

Vector regression transformer.

Attributes

name (str) The name of this transformer
namespace (str) The target namespace of this transformer
dimension (int > 0) The dimension of the vector data
dtype (np.dtype) The desired data type of the output
__init__(name, namespace, dimension, dtype=<Mock name='mock.float32' id='139764186935024'>)[source]

Methods

__init__(name, namespace, dimension[, dtype])
decode_events(encoded) Decode labeled events into (time, value) pairs
decode_intervals(encoded[, duration, multi]) Decode labeled intervals into (start, end, value) triples
empty(duration) Empty vector annotations.
encode_events(duration, events, values[, dtype]) Encode labeled events as a time-series matrix.
encode_intervals(duration, intervals, values) Encode labeled intervals as a time-series matrix.
inverse(vector[, duration]) Inverse vector transformer
merge(data) Merge an array of output dictionaries into a single dictionary with properly scoped names.
pop(field)
register(field, shape, dtype) Register a field as a tensor with specified shape and type.
scope(key) Apply the name scope to a key
transform(jam[, query]) Transform jam object to make data for this task
transform_annotation(ann, duration) Apply the vector transformation.