StructureViewModel model = builder.createStructureViewModel(editor); TIntArrayList navigationOffsets = new TIntArrayList(); addNavigationElements(model.getRoot(), navigationOffsets, isStart);
protected OneLabelL2RangeGEConstraints(TIntObjectHashMap<OneLabelL2IndGEConstraint> constraints, StateLabelMap map) { this.constraints = constraints; this.map = map; this.cache = new TIntArrayList(); }
protected OneLabelGEConstraints(TIntObjectHashMap<OneLabelGEConstraint> constraints, StateLabelMap map) { this.constraints = constraints; this.map = map; this.cache = new TIntArrayList(); }
protected OneLabelL2RangeGEConstraints(TIntObjectHashMap<OneLabelL2IndGEConstraint> constraints, StateLabelMap map) { this.constraints = constraints; this.map = map; this.cache = new TIntArrayList(); }
protected OneLabelGEConstraints(TIntObjectHashMap<OneLabelGEConstraint> constraints, StateLabelMap map) { this.constraints = constraints; this.map = map; this.cache = new TIntArrayList(); }
protected TwoLabelGEConstraints(ArrayList<TwoLabelGEConstraint> constraintsList, TIntIntHashMap constraintsMap, StateLabelMap map) { this.constraintsList = constraintsList; this.constraintsMap = constraintsMap; this.map = map; this.cache = new TIntArrayList(); }
private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject (); int version = in.readInt (); universe = (Universe) in.readObject (); int[] vals = (int[]) in.readObject (); included = new TIntArrayList (vals); }
private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject (); int version = in.readInt (); universe = (Universe) in.readObject (); int[] vals = (int[]) in.readObject (); included = new TIntArrayList (vals); }
public TwoLabelGEConstraints() { this.constraintsList = new ArrayList<TwoLabelGEConstraint>(); this.constraintsMap = new TIntIntHashMap(); this.map = null; this.cache = new TIntArrayList(); }
public OneLabelL2IndPRConstraints(boolean normalized) { this.normalized = normalized; this.numDimensions = 0; this.constraints = new TIntObjectHashMap<OneLabelL2IndPRConstraint>(); // this will be set by the PRTrainer this.map = null; this.cache = new TIntArrayList(); }
public TwoLabelGEConstraints() { this.constraintsList = new ArrayList<TwoLabelGEConstraint>(); this.constraintsMap = new TIntIntHashMap(); this.map = null; this.cache = new TIntArrayList(); }
public ListVarSet (Universe universe, Collection included) { this.universe = universe; this.included = new TIntArrayList (included.size ()); java.util.Iterator it = included.iterator(); while (it.hasNext()) { this.included.add (universe.getIndex ((Variable) it.next ())); } this.included.sort (); }
public MaxEntFLGEConstraints(int numFeatures, int numLabels, boolean useValues) { this.numFeatures = numFeatures; this.numLabels = numLabels; this.useValues = useValues; this.constraints = new TIntObjectHashMap<MaxEntFLGEConstraint>(); this.indexCache = new TIntArrayList(); this.valueCache = new TDoubleArrayList(); }
public OneLabelL2PRConstraints(boolean normalized) { this.constraints = new TIntObjectHashMap<OneLabelPRConstraint>(); this.constraintIndices = new TIntIntHashMap(); this.cache = new TIntArrayList(); this.normalized = normalized; }
public MaxEntFLPRConstraints(int numFeatures, int numLabels, boolean useValues) { this.useValues = useValues; this.numFeatures = numFeatures; this.numLabels = numLabels; this.constraints = new TIntObjectHashMap<MaxEntFLPRConstraint>(); this.indexCache = new TIntArrayList(); this.valueCache = new TDoubleArrayList(); }
public MaxEntRangeL2FLGEConstraints(int numFeatures, int numLabels, boolean useValues, boolean normalize) { this.numFeatures = numFeatures; this.numLabels = numLabels; this.useValues = useValues; this.normalize = normalize; this.constraints = new TIntObjectHashMap<MaxEntL2IndGEConstraint>(); this.indexCache = new TIntArrayList(); this.valueCache = new TDoubleArrayList(); }
public MaxEntFLGEConstraints(int numFeatures, int numLabels, boolean useValues) { this.numFeatures = numFeatures; this.numLabels = numLabels; this.useValues = useValues; this.constraints = new TIntObjectHashMap<MaxEntFLGEConstraint>(); this.indexCache = new TIntArrayList(); this.valueCache = new TDoubleArrayList(); }
public int[] keys() { TIntArrayList keys = new TIntArrayList(); addKeysToList(keys); return keys.toNativeArray(); }
public MaxEntFLPRConstraints(int numFeatures, int numLabels, boolean useValues) { this.useValues = useValues; this.numFeatures = numFeatures; this.numLabels = numLabels; this.constraints = new TIntObjectHashMap<MaxEntFLPRConstraint>(); this.indexCache = new TIntArrayList(); this.valueCache = new TDoubleArrayList(); }
private void fillUnclusteredInstances (int size) { unclusteredInstances = new TIntArrayList(size); for (int i = 0; i < size; i++) unclusteredInstances.add(i); unclusteredInstances.shuffle(random); }