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)
SequenceSplit
split
in interface SequenceSplit
sequence
- the sequence to splitpublic void setInputSchema(Schema inputSchema)
SequenceSplit
setInputSchema
in interface SequenceSplit
inputSchema
- the schema to setpublic Schema getInputSchema()
SequenceSplit
getInputSchema
in interface SequenceSplit
Copyright © 2019. All rights reserved.