public static class Model.InteractionSpec extends Iced
Modifier and Type | Method and Description |
---|---|
static Model.InteractionSpec |
allPairwise(java.lang.String[] columns) |
static Model.InteractionSpec |
create(java.lang.String[] columns,
StringPair[] pairs) |
static Model.InteractionSpec |
create(java.lang.String[] columns,
StringPair[] pairs,
java.lang.String[] interactionsOnly) |
static Model.InteractionSpec |
create(java.lang.String[] columns,
StringPair[] pairs,
java.lang.String[] interactionsOnly,
java.lang.String[] ignored) |
boolean |
isEmpty() |
Model.InteractionPair[] |
makeInteractionPairs(Frame f) |
Frame |
removeInteractionOnlyColumns(Frame f) |
Frame |
reorderColumns(Frame f)
Reorders columns of a Frame so that columns that only used to make interactions
are at the end of the Frame.
|
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public static Model.InteractionSpec allPairwise(java.lang.String[] columns)
public static Model.InteractionSpec create(java.lang.String[] columns, StringPair[] pairs, java.lang.String[] interactionsOnly, java.lang.String[] ignored)
public static Model.InteractionSpec create(java.lang.String[] columns, StringPair[] pairs, java.lang.String[] interactionsOnly)
public static Model.InteractionSpec create(java.lang.String[] columns, StringPair[] pairs)
public boolean isEmpty()
public Frame reorderColumns(Frame f)
f
- frame to adjustpublic Model.InteractionPair[] makeInteractionPairs(Frame f)