public class SplitMaxLengthSequence extends Object implements SequenceSplit
| Constructor and Description |
|---|
SplitMaxLengthSequence(int maxSequenceLength,
boolean equalSplits) |
| Modifier and Type | Method and Description |
|---|---|
Schema |
getInputSchema()
Getter for the input schema
|
void |
setInputSchema(Schema inputSchema)
Sets the input schema for this split
|
List<List<List<Writable>>> |
split(List<List<Writable>> sequence)
Split a sequence in to multiple time steps
|
String |
toString() |
public SplitMaxLengthSequence(int maxSequenceLength,
boolean equalSplits)
maxSequenceLength - max length of sequencesequalSplits - if true: split larger sequences into equal sized subsequences. If false: split into
n maxSequenceLength sequences, and (if necessary) 1 with 1 <= length < maxSequenceLengthpublic List<List<List<Writable>>> split(List<List<Writable>> sequence)
SequenceSplitsplit in interface SequenceSplitsequence - the sequence to splitpublic void setInputSchema(Schema inputSchema)
SequenceSplitsetInputSchema in interface SequenceSplitinputSchema - the schema to setpublic Schema getInputSchema()
SequenceSplitgetInputSchema in interface SequenceSplitCopyright © 2020. All rights reserved.