Class SplitMaxLengthSequence
- java.lang.Object
-
- org.datavec.api.transform.sequence.split.SplitMaxLengthSequence
-
- All Implemented Interfaces:
Serializable,SequenceSplit
public class SplitMaxLengthSequence extends Object implements SequenceSplit
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SplitMaxLengthSequence(int maxSequenceLength, boolean equalSplits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemagetInputSchema()Getter for the input schemavoidsetInputSchema(Schema inputSchema)Sets the input schema for this splitList<List<List<Writable>>>split(List<List<Writable>> sequence)Split a sequence in to multiple time stepsStringtoString()
-
-
-
Constructor Detail
-
SplitMaxLengthSequence
public SplitMaxLengthSequence(int maxSequenceLength, boolean equalSplits)- Parameters:
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 < maxSequenceLength
-
-
Method Detail
-
split
public List<List<List<Writable>>> split(List<List<Writable>> sequence)
Description copied from interface:SequenceSplitSplit a sequence in to multiple time steps- Specified by:
splitin interfaceSequenceSplit- Parameters:
sequence- the sequence to split- Returns:
-
setInputSchema
public void setInputSchema(Schema inputSchema)
Description copied from interface:SequenceSplitSets the input schema for this split- Specified by:
setInputSchemain interfaceSequenceSplit- Parameters:
inputSchema- the schema to set
-
getInputSchema
public Schema getInputSchema()
Description copied from interface:SequenceSplitGetter for the input schema- Specified by:
getInputSchemain interfaceSequenceSplit- Returns:
-
-