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 Schema
getInputSchema()
Getter for the input schemavoid
setInputSchema(Schema inputSchema)
Sets the input schema for this splitList<List<List<Writable>>>
split(List<List<Writable>> sequence)
Split a sequence in to multiple time stepsString
toString()
-
-
-
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:SequenceSplit
Split a sequence in to multiple time steps- Specified by:
split
in interfaceSequenceSplit
- Parameters:
sequence
- the sequence to split- Returns:
-
setInputSchema
public void setInputSchema(Schema inputSchema)
Description copied from interface:SequenceSplit
Sets the input schema for this split- Specified by:
setInputSchema
in interfaceSequenceSplit
- Parameters:
inputSchema
- the schema to set
-
getInputSchema
public Schema getInputSchema()
Description copied from interface:SequenceSplit
Getter for the input schema- Specified by:
getInputSchema
in interfaceSequenceSplit
- Returns:
-
-