dlpy.model.Sequence

class dlpy.model.Sequence(input_length=None, target_length=None, token_size=1)

Bases: dlpy.utils.DLPyDict

Sequence parameters object

Parameters:
input_length : string, optional

This should be a column in the input table. Specifies the variable that stores the input sequence length (number of tokens) of the row.

target_length : string, optional

This should a column / variable in the input table. Specifies the variable that stores the target sequence length (number of tokens) of the row.

token_size : int, optional

Specifies the number of variables that compose one token for sequence input data.

Returns:
Sequence
__init__(input_length=None, target_length=None, token_size=1)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([input_length, target_length, …]) Initialize self.
clear()
get(k[,d])
items()
keys()
pop(k[,d]) If key is not found, d is returned if given, otherwise KeyError is raised.
popitem() as a 2-tuple; but raise KeyError if D is empty.
setdefault(k[,d])
update([E, ]**F) If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v
values()