public class BranchInteractionConstraints extends water.Iced<BranchInteractionConstraints>
Constructor and Description |
---|
BranchInteractionConstraints(water.util.IcedHashSet<water.util.IcedInt> allowedInteractionIndices) |
Modifier and Type | Method and Description |
---|---|
water.util.IcedHashSet<water.util.IcedInt> |
intersection(water.util.IcedHashSet<water.util.IcedInt> set)
Important method to decide which indices are allowed for the next level of constraints.
|
boolean |
isAllowedIndex(int i) |
BranchInteractionConstraints |
nextLevelInteractionConstraints(GlobalInteractionConstraints ics,
int colIndex)
Decide which column indices is allowed to be used for the next split in the next level of a tree.
|
public BranchInteractionConstraints(water.util.IcedHashSet<water.util.IcedInt> allowedInteractionIndices)
public boolean isAllowedIndex(int i)
public water.util.IcedHashSet<water.util.IcedInt> intersection(water.util.IcedHashSet<water.util.IcedInt> set)
set
- input setpublic BranchInteractionConstraints nextLevelInteractionConstraints(GlobalInteractionConstraints ics, int colIndex)
ics
- global interaction constraint object generated from input interaction constraintscolIndex
- column index of the split to decide allowed indices for the next level of constraint