public class SplitInstruction extends Instruction
ReproducibleInstances object. Performns a stratified split from WekaUtil based on the given ratios and seed. The index gives the split to be used by the ReproducibleInstances.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMAND_NAME
Constant string to identify this instruction.
|
| Constructor and Description |
|---|
SplitInstruction(java.lang.String ratios,
long seed,
int outIndex)
Constructor to create a split Instruction that can be converted into json.
|
getCommand, getInputs, setCommand, setInputspublic static final java.lang.String COMMAND_NAME
public SplitInstruction(java.lang.String ratios,
long seed,
int outIndex)
ratios - ratios for the splitseed - random seedoutIndex - index of the portion to use in the following