public static class Model.InteractionPair extends Iced
| Modifier and Type | Field and Description |
|---|---|
int |
vecIdx |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static Model.InteractionPair[] |
generatePairwiseInteractions(int from,
int to)
Generate all pairwise combinations of ints in the range [from,to).
|
static Model.InteractionPair[] |
generatePairwiseInteractionsFromList(int... indexes)
Generate all pairwise combinations of the arguments.
|
int |
hashCode() |
static int |
isInteraction(int i,
Model.InteractionPair[] ips)
Check to see if any of the vecIdx values is the desired value.
|
static Model.InteractionPair[] |
read(java.lang.String interaction) |
void |
setDomain(java.lang.String[] dom)
Set the domain; computed in an MRTask over the two categorical vectors that make
up this interaction pair
|
java.lang.String |
toString() |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSONpublic static Model.InteractionPair[] generatePairwiseInteractions(int from, int to)
from - Start indexto - End index (exclusive)public static Model.InteractionPair[] generatePairwiseInteractionsFromList(int... indexes)
indexes - An array of column indices.public void setDomain(java.lang.String[] dom)
dom - The domain retrieved by the CombineDomainTask in InteractionWrappedVecpublic static int isInteraction(int i,
Model.InteractionPair[] ips)
public static Model.InteractionPair[] read(java.lang.String interaction)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object