Class InvertedFeature

java.lang.Object
org.tribuo.regression.rtree.impl.InvertedFeature
All Implemented Interfaces:
Comparable<InvertedFeature>

public class InvertedFeature extends Object implements Comparable<InvertedFeature>
Internal datastructure for implementing a decision tree.

Represents a single value and feature tuple, with associated arrays for the indicies where that combination occurs.

Indices and values must be inserted in sorted ascending order or everything will break. This code does not check that this invariant is maintained.

Note: this class has a natural ordering that is inconsistent with equals.