ClassData classData = result.getOrCreateClassData(fileData.myFilePath); int max = -1; TIntObjectHashMap<LineData> linesMap = new TIntObjectHashMap<>(); for (GoCoverageProjectData.RangeData rangeData : fileData.myRangesData.values()) { for (int i = rangeData.startLine; i <= rangeData.endLine; i++) {
public JunctionTree(int size) { super(); numNodes = size; sepsets = new TIntObjectHashMap(); cpfs = new Factor[size]; } // JunctionTree constructor
public JunctionTree(int size) { super(); numNodes = size; sepsets = new TIntObjectHashMap(); cpfs = new Factor[size]; } // JunctionTree constructor
public Record (Alphabet fieldAlph, Alphabet valueAlph) { this.fieldAlph = fieldAlph; this.valueAlph = valueAlph; field2values = new TIntObjectHashMap<FeatureVector>(); }
private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject (); // rerun initializers of transient fields projectionCache = new TIntObjectHashMap (); }
private void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject (); // rerun initializers of transient fields projectionCache = new TIntObjectHashMap (); }
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(); }
/** Returns an iterator over the set of (key2, value) pairs that match (key1). */ public TIntObjectIterator curry (int key1) { final TIntObjectHashMap inner = (TIntObjectHashMap) backing.get (key1); if (inner == null) { return new TIntObjectIterator (new TIntObjectHashMap ()); } else { return new TIntObjectIterator (inner); } }
/** Returns an iterator over the set of (key2, value) pairs that match (key1). */ public TIntObjectIterator curry (int key1) { final TIntObjectHashMap inner = (TIntObjectHashMap) backing.get (key1); if (inner == null) { return new TIntObjectIterator (new TIntObjectHashMap ()); } else { return new TIntObjectIterator (inner); } }
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 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 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 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 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(); }
/** * Creates the an instance of the class with a given * query identifier. * @param _queryid String the query identifier. */ public QrelsHashSet(String _queryid){ this.queryid = _queryid; nonRelDocnos = new THashSet<String>(); relGrade = new TIntHashSet(); relGradeDocnosMap = new TIntObjectHashMap<THashSet<String>>(); }
public OneLabelL2PRConstraints(boolean normalized) { this.constraints = new TIntObjectHashMap<OneLabelPRConstraint>(); this.constraintIndices = new TIntIntHashMap(); this.cache = new TIntArrayList(); this.normalized = normalized; }
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 MemoryCompressedMetaIndex(String[] keys, int[] keylengths) { this.keys = keys; metadata = new TIntObjectHashMap<byte[]>(); key2meta = new TObjectIntHashMap<String>(); this.keylengths = keylengths; int i = 0; for (String key : keys) key2meta.put(key, i++); }